소스 검색

* 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 년 전
부모
커밋
56f8b88125
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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);