disable new alloctor behaviour for emscripten

This commit is contained in:
Andreas Rumpf 2016-12-27 17:54:09 +01:00
commit 847210b799

View file

@ -276,6 +276,7 @@ proc pageAddr(p: pointer): PChunk {.inline.} =
#sysAssert(Contains(allocator.chunkStarts, pageIndex(result))) #sysAssert(Contains(allocator.chunkStarts, pageIndex(result)))
proc requestOsChunks(a: var MemRegion, size: int): PBigChunk = proc requestOsChunks(a: var MemRegion, size: int): PBigChunk =
when not defined(emscripten):
if not a.blockChunkSizeIncrease: if not a.blockChunkSizeIncrease:
a.nextChunkSize = a.nextChunkSize =
if a.currMem < 64 * 1024: PageSize*4 if a.currMem < 64 * 1024: PageSize*4