Changeset 13895
- Timestamp:
- Jun 27, 2010, 11:33:31 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/lisp-kernel/pmcl-kernel.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/pmcl-kernel.c
r13881 r13895 2287 2287 lisp_global(FREE_STATIC_CONSES)+=(n<<fixnumshift); 2288 2288 } 2289 2290 #ifdef X86 2291 #define USE_GC_NOTIFICATION 1 2292 #else 2293 #undef USE_GC_NOTIFICATION 2294 #endif 2295 2289 2296 void 2290 2297 ensure_static_conses(ExceptionInformation *xp, TCR *tcr, natural nconses) … … 2293 2300 natural nbytes = nconses>>dnode_shift, have; 2294 2301 BytePtr p = a->high-nbytes; 2302 #ifdef USE_GC_NOTIFICATION 2295 2303 Boolean crossed_notify_threshold = false; 2296 2304 LispObj before_shrink, after_shrink; 2305 #endif 2297 2306 2298 2307 if (p < a->active) { 2299 2308 untenure_from_area(tenured_area); 2300 2309 gc_from_xp(xp, 0L); 2310 #ifdef USE_GC_NOTIFICATION 2301 2311 did_gc_notification_since_last_full_gc = false; 2312 #endif 2302 2313 } 2303 2314 2304 2315 have = unbox_fixnum(lisp_global(FREE_STATIC_CONSES)); 2305 2316 if (have < nconses) { 2317 #ifdef USE_GC_NOTIFICATION 2306 2318 before_shrink = a->high-a->active; 2307 2319 if (before_shrink>nbytes) { … … 2313 2325 } 2314 2326 } 2327 #endif 2315 2328 allocate_static_conses(nconses); 2316 2329 tcr->bytes_allocated += nbytes; 2317 2330 } 2331 #ifdef USE_GC_NOTIFICATION 2318 2332 if (crossed_notify_threshold && !did_gc_notification_since_last_full_gc) { 2319 2333 callback_for_gc_notification(xp,tcr); 2320 2334 } 2335 #endif 2321 2336 } 2322 2337
Note:
See TracChangeset
for help on using the changeset viewer.
