<short summary of the patch>
authorCamm Maguire <camm@debian.org>
Sun, 13 Nov 2022 12:55:14 +0000 (12:55 +0000)
committerCamm Maguire <camm@debian.org>
Sun, 13 Nov 2022 12:55:14 +0000 (12:55 +0000)
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-23) unstable; urgency=medium

  * Version_2_6_13pre28

Gbp-Pq: Name Version_2_6_13pre29

o/alloc.c

index 4a0a3218310a5e3ae05a22c7da4bcb784a905b8b..8518d2b7addceaee739a986843cf997e1f92281b 100644 (file)
--- a/o/alloc.c
+++ b/o/alloc.c
@@ -1203,8 +1203,8 @@ object malloc_list=Cnil;
 
 void
 maybe_set_hole_from_maxpages(void) {
-  if (rb_start==heap_end && rb_end==rb_start && rb_limit==rb_start && rb_pointer==rb_start)
-    resize_hole(available_pages/3,t_relocatable,0);
+  if (rb_pointer==rb_begin())
+    resize_hole(ufmin(phys_pages,available_pages/3),t_relocatable,0);
 }
 
 void
@@ -1358,7 +1358,7 @@ gcl_init_alloc(void *cs_start) {
   set_tm_maxpage(tm_table+t_relocatable,1);
   nrbpage=0;
   
-  resize_hole(ufmin(phys_pages,available_pages/3),t_relocatable,0);
+  maybe_set_hole_from_maxpages();
 #ifdef SGC     
   tm_table[(int)t_relocatable].tm_sgc = 50;
 #endif