Commit ebfefc71 authored by Ian Lynagh's avatar Ian Lynagh

Fix the Windows "VirtualAlloc MEM_COMMIT failed" bug

We had
    base=01100000 size=1048576 size_delta=0 it->size=2097152 
    it->base=00F00000 base-it->base=00200000
in commitBlocks.
Esa Ilari Vuokko identified this inequality test as the cause.
parent 82af8c0a
......@@ -442,7 +442,7 @@ static void
commitBlocks(char* base, int size) {
alloc_rec* it;
it=allocs;
for( ; it!=0 && (it->base+it->size)<base; it=it->next ) {}
for( ; it!=0 && (it->base+it->size)<=base; it=it->next ) {}
for( ; it!=0 && size>0; it=it->next ) {
int size_delta;
void* temp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment