diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-01-02 18:53:44 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-01-02 18:53:44 -0800 |
commit | 6d87b565930d921cbb48e2fda97a9e8b0afa3826 (patch) | |
tree | 33d1b0470fd6776321a949c3e244e2de65504b0b /src/jsifier.js | |
parent | 8bd21f1fff1ddac70f617291dbe2501efa11be30 (diff) |
adjust TOTAL_MEMORY at runtime, to take into account last minute changes to Module.TOTAL_MEMORY
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 2d0aadd7..58dc4653 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1810,7 +1810,7 @@ function JSify(data, functionsOnly, givenFunctions) { print('staticSealed = true; // seal the static portion of memory\n'); print('STACK_MAX = STACK_BASE + ' + TOTAL_STACK + ';\n'); print('DYNAMIC_BASE = DYNAMICTOP = Runtime.alignMemory(STACK_MAX);\n'); - print('assert(DYNAMIC_BASE < TOTAL_MEMORY); // Stack must fit in TOTAL_MEMORY; allocations from here on may enlarge TOTAL_MEMORY\n'); + print('assert(DYNAMIC_BASE < TOTAL_MEMORY, "TOTAL_MEMORY not big enough for stack");\n'); } if (asmLibraryFunctions.length > 0) { |