diff options
-rw-r--r-- | src/preamble.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index 312aac24..eb55defb 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -552,7 +552,7 @@ function enlargeMemory() { assert(TOTAL_MEMORY > 4); // So the loop below will not be infinite #endif while (TOTAL_MEMORY <= STATICTOP) { // Simple heuristic. Override enlargeMemory() if your program has something more optimal for it - TOTAL_MEMORY = alignMemoryPage(TOTAL_MEMORY*1.25); + TOTAL_MEMORY = alignMemoryPage(2*TOTAL_MEMORY); } #if USE_TYPED_ARRAYS == 1 var oldIHEAP = IHEAP; |