aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-21 17:46:24 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-21 17:46:24 -0700
commite7d0bd7284e2e5847a5946dea763560b27a2d9f8 (patch)
treee6653d97f9819d9fbaec8eb2a57cc6ef82d316f6
parentf4da66613eaa48fbaeec424f65bf513e0609a724 (diff)
allocate using NORMAL in FS.init, to avoid races with data packages arriving and using malloc before us
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 1a8f43f0..04976b92 100644
--- a/src/library.js
+++ b/src/library.js
@@ -619,7 +619,7 @@ LibraryManager.library = {
#endif
allocate([ allocate(
{{{ Runtime.QUANTUM_SIZE === 4 ? '[0, 0, 0, 0, _stdin, 0, 0, 0, _stdout, 0, 0, 0, _stderr, 0, 0, 0]' : '[0, _stdin, _stdout, _stderr]' }}},
- 'void*', ALLOC_DYNAMIC) ], 'void*', ALLOC_NONE, {{{ makeGlobalUse('__impure_ptr') }}});
+ 'void*', ALLOC_NORMAL) ], 'void*', ALLOC_NONE, {{{ makeGlobalUse('__impure_ptr') }}});
},
quit: function() {