From 176187202cc9ba83ed924fa8cbad4f58a11fcb7c Mon Sep 17 00:00:00 2001 From: Camm Maguire Date: Sun, 13 Nov 2022 12:55:14 +0000 Subject: [PATCH] TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. gcl (2.6.12-2) unstable; urgency=medium * Version_2_6_13pre1 Gbp-Pq: Name Version_2_6_13pre1a --- o/alloc.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/o/alloc.c b/o/alloc.c index 155a476..b5a6d9f 100644 --- a/o/alloc.c +++ b/o/alloc.c @@ -1269,10 +1269,11 @@ gcl_init_alloc(void *cs_start) { update_real_maxpage(); if (gcl_alloc_initialized) { - massert(rb_start==heap_end &&rb_end==heap_end && rb_limit==heap_end && rb_pointer==heap_end); - holepage=new_holepage; - alloc_page(-holepage); - rb_start=rb_end=rb_limit=rb_pointer=heap_end+(holepage<c.c_cdr),pp=pp->c.c_cdr) if ((pp)->c.c_car->st.st_self == ptr) { - /* SGC contblock pages: Its possible this is on an old page CM 20030827 */ -/* #ifdef SGC */ -/* insert_maybe_sgc_contblock((pp)->c.c_car->st.st_self,(pp)->c.c_car->st.st_dim); */ -/* #else */ -/* insert_contblock((pp)->c.c_car->st.st_self,(pp)->c.c_car->st.st_dim); */ -/* #endif */ (pp)->c.c_car->st.st_self = NULL; *p = pp->c.c_cdr; #ifdef GCL_GPROF if (initial_monstartup_pointer==ptr) { + initial_monstartup_pointer_echo=ptr; initial_monstartup_pointer=NULL; - if (core_end-heap_end>=sizeof(ptr)) - *(void **)heap_end=ptr; } #endif return; @@ -1840,12 +1835,13 @@ free(void *ptr) { #ifdef NOFREE_ERR return; #else - if (core_end-heap_end