-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add runtime detection for toResizableBuffer #27096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2193,9 +2193,14 @@ var WASM_ESM_INTEGRATION = false; | |
| // [link] | ||
| var JS_BASE64_API = false; | ||
|
|
||
| // Enable support for GrowableSharedArrayBuffer. | ||
| // This feature has only recently become available across major browser engines | ||
| // and Node.js. | ||
| // Enable unconditional support for growable views of Wasm memory. | ||
| // This is a recent Web platform feature that can make growing the Wasm memory | ||
| // more efficient, especially in multi-threaded builds. | ||
| // Note that Emscripten will always take advantage of this feature when it is | ||
| // available, regardless of this setting. Enabling this setting effectively | ||
| // removes the fallback code (which adds overhead in multi-threaded builds). | ||
| // Only enable this setting if you know that all of your target browser | ||
| // engines support this feature. | ||
|
Comment on lines
+2199
to
+2203
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about turning this into a three-mode setting, similar to
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh sorry, I just noticed this is also mentioned in #27096 (comment). |
||
| // [link] | ||
| var GROWABLE_ARRAYBUFFERS = false; | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading the below Firefox bug report, I think this comment should be adjusted to something like:
(i.e.
wasmMemory.toResizableBuffer()works as expected, but it cannot be deserialized in web workers.)