Skip to content

[main][sgen] Remove two dead fields; fix wasm-mt AOT compilation #75511

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

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 13, 2022

Forward port of #75509 to main


They were only initialized, but never read.

But what they did do is change the SgenClientInfo field offsets between the threaded and non-threaded wasm runtimes (because emscripten only has HAVE_PTHREAD_KILL in the threaded build). As a result the offsets for tlab_start, tlab_next and tlab_temp_end were different for the AOT compilers targeting threaded vs non-threaded WASM.

This PR removes the two unused fields which will make the two wasm configurations match again, allowing us to ship a single AOT cross compiler for both threaded and non-threaded wasm.

Fixes #75474

They were only initialized, but never read.

But what they did do is change the SgenClientInfo field offsets
between the threaded and non-threaded wasm runtimes (because
emscripten only has HAVE_PTHREAD_KILL in the threaded build).  As a
result the offsets for tlab_start, tlab_next and tlab_temp_end were
different for the AOT compilers targeting threaded vs non-threaded
WASM.

This PR removes the two unused fields which will make the two wasm
configurations match again, allowing us to ship a single AOT cross
compiler for both threaded and non-threaded wasm.
@ghost ghost added the area-VM-meta-mono label Sep 13, 2022
@lambdageek lambdageek changed the title [main] [release/7.0][sgen] Remove two dead fields; fix wasm-mt AOT compilation [main][sgen] Remove two dead fields; fix wasm-mt AOT compilation Sep 13, 2022
@lambdageek lambdageek self-assigned this Sep 13, 2022
@lambdageek lambdageek added this to the 8.0.0 milestone Sep 13, 2022
@lambdageek lambdageek merged commit f70fd22 into main Sep 13, 2022
@jkotas jkotas deleted the backport/pr-75509-to-main branch September 16, 2022 13:43
@ghost ghost locked as resolved and limited conversation to collaborators Oct 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wasm-mt] AOT compilation with threading enabled results in out of bounds memory access
2 participants