File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,10 @@ var ABORTING_MALLOC = 1;
117
117
// eliminator), but in wasm it is efficient and should be used whenever relevant.
118
118
// See https://code.google.com/p/v8/issues/detail?id=3907 regarding
119
119
// memory growth performance in chrome.
120
+ // Note that growing memory means we replace the JS typed array views, as
121
+ // once created they cannot be resized. (This happens both in asm.js and in
122
+ // wasm - in wasm we can grow the Memory, but still need to create new
123
+ // views for JS.)
120
124
// Setting this option on will disable ABORTING_MALLOC, in other words,
121
125
// ALLOW_MEMORY_GROWTH enables fully standard behavior, of both malloc
122
126
// returning 0 when it fails, and also of being able to allocate more
You can’t perform that action at this time.
0 commit comments