aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-10 13:27:50 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-10 13:27:50 -0800
commitb2827e02a2b996e501bf00fe884cd34370dbcca1 (patch)
treedb1359b1ce013f3344bd9cff5d39f3ed6459d4bd /src/preamble.js
parent5beb9b6b1909da1c527ac5cd9601fdba82f39ad5 (diff)
align stack to QUANTUM_SIZE in ta2 properly, avoiding unnecessary checks and corrections
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index eb55defb..5bb904d5 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -643,7 +643,7 @@ Module['HEAPU32'] = HEAPU32;
Module['HEAPF32'] = HEAPF32;
#endif
-STACK_ROOT = STACKTOP = alignMemoryPage(10);
+STACK_ROOT = STACKTOP = Runtime.alignMemory(STATICTOP);
STACK_MAX = STACK_ROOT + TOTAL_STACK;
STATICTOP = alignMemoryPage(STACK_MAX);