Changeset 13346
- Timestamp:
- Dec 30, 2009, 10:32:24 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/source/lisp-kernel/gc-common.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/gc-common.c
r13330 r13346 98 98 natural GCstack_limit = 0; 99 99 100 void 101 check_static_cons_freelist(char *phase) 102 { 103 LispObj 104 n, 105 base = (LispObj)static_cons_area->low, 106 limit = static_cons_area->ndnodes; 107 natural i=0; 108 109 for (n=lisp_global(STATIC_CONSES);n!=lisp_nil;n=((cons *)untag(n))->cdr, i++) { 110 if ((fulltag_of(n) != fulltag_cons) || 111 (area_dnode(n,base) >= limit)) { 112 Bug(NULL, "%s: static cons freelist has invalid element 0x" LISP "\n", 113 phase, i); 114 } 115 } 116 } 100 117 101 118 void … … 1427 1444 check_all_areas(tcr); 1428 1445 } 1446 check_static_cons_freelist("in pre-gc static-cons check"); 1429 1447 } 1430 1448 … … 1690 1708 check_all_areas(tcr); 1691 1709 } 1710 check_static_cons_freelist("in post-gc static-cons check"); 1711 1692 1712 1693 1713
Note:
See TracChangeset
for help on using the changeset viewer.
