-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Wasm] Specify the least valid pointer for wasm32 #39300
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
[Wasm] Specify the least valid pointer for wasm32 #39300
Conversation
@swift-ci please smoke test |
WebAssembly doesn't reserve low addresses but without "extra inhabitants" of the pointer representation, runtime performance and memory footprint are worse. So assume that compiler driver uses wasm-ld and --global-base=1024 to reserve low 1KB.
74e5f37
to
6fd3ae7
Compare
Hi @rjmccall, would you have a moment to take a look at this PR? |
I'd personally be happier with 4096 here (same as other Swift 32-bit platforms, minimizes the chance of unexpected dependencies you'll have to track down later). |
@swift-ci please smoke test |
@tbkka thanks, that's updated now. Do you think there's anything else to be done here for a review approval? |
@swift-ci Please test |
Thank you for your review and follow-up! |
WebAssembly doesn't reserve low addresses but without "extra inhabitants" of
the pointer representation, runtime performance and memory footprint are
worse. So assume that compiler driver uses wasm-ld and --global-base=1024 to
reserve low 1KB.