Explorar o código

* 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 %!s(int64=15) %!d(string=hai) anos
pai
achega
56f8b88125
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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);