diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-13 14:31:47 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-13 14:31:47 -0800 |
commit | 987ce9f2c0e009e0ff6d4eb7c65e5d99d24dfa3f (patch) | |
tree | b727c71815fe2e94ef8c5d7f6d03180ebc27fc41 /emcc | |
parent | 51f6b5b05693a9601a25d2274e1a10e4ed01b947 (diff) |
set TOTAL_MEMORY to default to powers of two, for now
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1133,10 +1133,11 @@ try: heap = 4096 while heap < shared.Settings.TOTAL_MEMORY: - if heap <= 16*1024*1024: - heap *= 2 - else: - heap += 16*1024*1024 + heap *= 2 + #if heap <= 16*1024*1024: + # heap *= 2 + #else: + # heap += 16*1024*1024 if heap != shared.Settings.TOTAL_MEMORY: logging.warning('increasing TOTAL_MEMORY to %d to be more reasonable for asm.js' % heap) shared.Settings.TOTAL_MEMORY = heap |