Changeset 16375
- Timestamp:
- Apr 24, 2015, 2:56:08 AM (6 years ago)
- Location:
- branches/acl2-egc/source/lisp-kernel
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/acl2-egc/source/lisp-kernel/gc-common.c
r16119 r16375 1834 1834 GCfirstunmarked = calculate_relocation(); 1835 1835 1836 if (!GCephemeral_low) { 1837 reclaim_static_dnodes(); 1838 } 1839 1840 forward_range((LispObj *) ptr_from_lispobj(GCarealow), (LispObj *) ptr_from_lispobj(GCfirstunmarked)); 1836 reclaim_static_dnodes(); 1837 1838 1839 forward_range((LispObj *) ptr_from_lispobj(GCareadynamiclow), (LispObj *) ptr_from_lispobj(GCfirstunmarked)); 1841 1840 1842 1841 other_tcr = tcr; -
branches/acl2-egc/source/lisp-kernel/image.c
r15842 r16375 312 312 case AREA_STATIC_CONS: 313 313 addr = (char *) lisp_global(HEAP_START); 314 tenured_area = new_area(addr, addr, AREA_STATIC); 315 314 316 a = new_area(addr-align_to_power_of_2(mem_size,log2_page_size), addr, AREA_STATIC_CONS); 315 317 if (mem_size) { … … 325 327 sect->area = a; 326 328 static_cons_area = a; 329 /* not yet 330 lower_heap_start(a->low,tenured_area); 331 */ 327 332 break; 328 333 … … 421 426 break; 422 427 case AREA_STATIC_CONS: 428 /* not yet 429 lower_heap_start(static_cons_area->low,tenured_area); 430 */ 423 431 break; 424 432 case AREA_DYNAMIC: 425 lower_heap_start(static_cons_area->low,a);426 433 if (bias) { 427 434 relocate_area_contents(a, bias); -
branches/acl2-egc/source/lisp-kernel/lisp-debug.c
r16366 r16375 224 224 { 225 225 #ifndef WINDOWS 226 if ( !isatty(fileno(dbgin))) {226 if (1 || !isatty(fileno(dbgin))) { 227 227 int fd = open("/dev/tty", O_RDWR); 228 228 if (fd >=0) { -
branches/acl2-egc/source/lisp-kernel/lisp.h
r16366 r16375 92 92 void ensure_static_conses(ExceptionInformation *, TCR *,natural); 93 93 94 void ensure_gc_structures_writable(void); 95 94 96 extern FILE *dbgout,*dbgin; 95 97 -
branches/acl2-egc/source/lisp-kernel/memory.c
r16110 r16375 708 708 untenure_from_area(area *from) 709 709 { 710 if (lisp_global(OLDEST_EPHEMERAL) != 0) { 710 if ((lisp_global(OLDEST_EPHEMERAL) != 0) && 711 (from->static_dnodes ==0)) { 711 712 area *a = active_dynamic_area, *child; 712 713 BytePtr curlow = from->low; -
branches/acl2-egc/source/lisp-kernel/pmcl-kernel.c
r16366 r16375 703 703 CommitMemory(new_markbits,n); 704 704 dynamic_mark_ref_bits = (bitvector)new_markbits; 705 if (a->refbits) { 705 if (a) { 706 if (a->refbits) { 706 707 a->refbits= dynamic_mark_ref_bits; 707 } 708 a->static_dnodes += new_dnodes; 709 a->ndnodes += new_dnodes; 710 a->low = new_low; 711 a->refidx -= nidx; 708 } 709 a->static_dnodes += new_dnodes; 710 a->ndnodes += new_dnodes; 711 a->low = new_low; 712 a->refidx -= nidx; 713 } 712 714 low_markable_address = new_low; 713 715 lisp_global(HEAP_START) = (LispObj)new_low; 714 716 static_cons_area->ndnodes = area_dnode(static_cons_area->high,new_low); 717 ensure_gc_structures_writable(); 715 718 } 716 719 } … … 720 723 { 721 724 natural 722 ndnodes = area_dnode(lisp_global(HEAP_END), low_relocatable_address),725 ndnodes = area_dnode(lisp_global(HEAP_END),tenured_area->low), 723 726 markbits_size = (3*sizeof(LispObj))+((ndnodes+7)>>3), 724 727 reloctab_size = (sizeof(LispObj)*(((ndnodes+((1<<bitmap_shift)-1))>>bitmap_shift)+1)), … … 1402 1405 } 1403 1406 } 1407 redirect_debugger_io(); 1408 #if 0 1409 fprintf(dbgout,"ccl pid = %d", getpid()); 1410 sleep(20); 1411 #endif 1412 1413 1404 1414 } 1405 1415 … … 1780 1790 g1_area = new_area(lowptr, lowptr, AREA_STATIC); 1781 1791 g2_area = new_area(lowptr, lowptr, AREA_STATIC); 1782 tenured_area = new_area(lowptr, lowptr, AREA_STATIC);1783 add_area_holding_area_lock(tenured_area);1784 1792 add_area_holding_area_lock(g2_area); 1785 1793 add_area_holding_area_lock(g1_area); 1786 1794 add_area_holding_area_lock(tenured_area); 1787 1795 g1_area->code = AREA_DYNAMIC; 1788 1796 g2_area->code = AREA_DYNAMIC; … … 1811 1819 g1_area->threshold = default_g1_threshold; 1812 1820 a->threshold = default_g0_threshold; 1821 if (static_cons_area && static_cons_area->ndnodes) { 1822 lower_heap_start(static_cons_area->low, tenured_area); 1823 } 1813 1824 } 1814 1825 } -
branches/acl2-egc/source/lisp-kernel/x86-gc.c
r16339 r16375 311 311 312 312 if (current != end) { 313 Bug(NULL, "Overran end of memory range: start = 0x %08x, end = 0x%08x, prev = 0x%08x, current = 0x%08x",313 Bug(NULL, "Overran end of memory range: start = 0x" LISP ", end = 0x" LISP ", prev = 0x" LISP ", current = 0x" LISP "", 314 314 start, end, prev, current); 315 315 }
Note: See TracChangeset
for help on using the changeset viewer.