Browse Source

* also initialise locgrowheapsizesmall in InitHeapThread, should fix crashes
on Windows after r15618 (not sure why things worked fine elsewhere)

git-svn-id: trunk@15688 -

Jonas Maebe 15 years ago
parent
commit
56f8b88125
1 changed files with 3 additions and 0 deletions
  1. 3 0
      rtl/inc/heap.inc

+ 3 - 0
rtl/inc/heap.inc

@@ -1467,6 +1467,9 @@ begin
   end;
   loc_freelists := @freelists;
   fillchar(loc_freelists^,sizeof(tfreelists),0);
+  { initialise the local blocksize for allocating oschunks for fixed
+    freelists with the default starting value }
+  loc_freelists^.locgrowheapsizesmall:=growheapsizesmall;
 {$ifdef DUMP_MEM_USAGE}
   fillchar(sizeusage,sizeof(sizeusage),0);
   fillchar(maxsizeusage,sizeof(sizeusage),0);