mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
disable new alloctor behaviour for emscripten
This commit is contained in:
@@ -276,10 +276,11 @@ proc pageAddr(p: pointer): PChunk {.inline.} =
|
||||
#sysAssert(Contains(allocator.chunkStarts, pageIndex(result)))
|
||||
|
||||
proc requestOsChunks(a: var MemRegion, size: int): PBigChunk =
|
||||
if not a.blockChunkSizeIncrease:
|
||||
a.nextChunkSize =
|
||||
if a.currMem < 64 * 1024: PageSize*4
|
||||
else: a.nextChunkSize*2
|
||||
when not defined(emscripten):
|
||||
if not a.blockChunkSizeIncrease:
|
||||
a.nextChunkSize =
|
||||
if a.currMem < 64 * 1024: PageSize*4
|
||||
else: a.nextChunkSize*2
|
||||
var size = size
|
||||
|
||||
if size > a.nextChunkSize:
|
||||
|
||||
Reference in New Issue
Block a user