Skip to content

Commit 7be1dd2

Browse files
authored
comment on memory growth [ci skip] (#7297)
1 parent 1027b93 commit 7be1dd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/settings.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ var ABORTING_MALLOC = 1;
117117
// eliminator), but in wasm it is efficient and should be used whenever relevant.
118118
// See https://code.google.com/p/v8/issues/detail?id=3907 regarding
119119
// 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.)
120124
// Setting this option on will disable ABORTING_MALLOC, in other words,
121125
// ALLOW_MEMORY_GROWTH enables fully standard behavior, of both malloc
122126
// returning 0 when it fails, and also of being able to allocate more

0 commit comments

Comments
 (0)