Core: Heap improved

git-svn-id: svn://ultimatepp.org/upp/trunk@13412 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-06-17 22:03:01 +00:00
parent 86e91ce872
commit 89e717ef0d

View file

@ -89,7 +89,7 @@ void *Heap::LAlloc(size_t& size)
aux.LargeFreeRemoteRaw();
#if 1
ptr = aux.TryLAlloc(i0, wcount);
if(ptr) {
if(ptr) { // found in aux, we need to move large page from aux to this heap
LLOG("Found in aux");
BlkPrefix *h = (BlkPrefix *)ptr - 1;
while(!h->IsFirst()) // find the start of large page to get page header