Skip to content

[wasm] Use interp-only instead of interp-llvmonly as the default execution mode. - #20159

Merged
vargaz merged 2 commits into
mono:masterfrom
vargaz:wasm-interp-only
Jul 28, 2020
Merged

vargaz merged 2 commits into
mono:masterfrom
vargaz:wasm-interp-only

Conversation

@vargaz

@vargaz vargaz commented Jul 24, 2020

Copy link
Copy Markdown
Contributor

interp-llvmonly caused mono_llvm_only to be set, causing bad behavior like
stack walks not working.

…ution mode.

interp-llvmonly caused mono_llvm_only to be set, causing bad behavior like
stack walks not working.

@thaystg thaystg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With your change you can remove this ifdef:

#ifndef TARGET_WASM

Comment thread mono/mini/mini-runtime.h Resolved
@vargaz

vargaz commented Jul 27, 2020

Copy link
Copy Markdown
Contributor Author

The #ifdef WASM stuff is still needed for aot mode.

@thaystg

thaystg commented Jul 27, 2020

Copy link
Copy Markdown
Contributor

So we still need my PR?
#20156

@vargaz

vargaz commented Jul 27, 2020

Copy link
Copy Markdown
Contributor Author

Don't know.

@thaystg

thaystg commented Jul 27, 2020

Copy link
Copy Markdown
Contributor

Okay, I will test.

@vargaz

vargaz commented Jul 27, 2020

Copy link
Copy Markdown
Contributor Author

@monojenkins build failed

@vargaz
vargaz requested a review from thaystg July 28, 2020 01:02
@vargaz
vargaz merged commit 218419e into mono:master Jul 28, 2020
@vargaz
vargaz deleted the wasm-interp-only branch July 28, 2020 01:59
thaystg added a commit to thaystg/runtime that referenced this pull request Jul 28, 2020
lewing pushed a commit to dotnet/runtime that referenced this pull request Jul 28, 2020
Jacksondr5 pushed a commit to Jacksondr5/runtime that referenced this pull request Aug 10, 2020
lambdageek added a commit to lambdageek/xamarin-android that referenced this pull request Feb 18, 2021
This depends on a fix to mono/mono#18893 (make interp only mode
distinct from MONO_AOT_MODE_LAST) which was done in
mono/mono#20159 but only for .NET 6, not previous Mono releases.
lambdageek added a commit to lambdageek/xamarin-android that referenced this pull request Feb 18, 2021
This depends on a fix to mono/mono#18893 (make interp only mode
distinct from MONO_AOT_MODE_LAST) which was done in
mono/mono#20159 but only for .NET 6, not previous Mono releases.

Fixes dotnet#5633
lambdageek added a commit to lambdageek/xamarin-android that referenced this pull request Feb 19, 2021
This depends on a fix to mono/mono#18893 (make interp only mode
distinct from MONO_AOT_MODE_LAST) which was done in
mono/mono#20159 but only for .NET 6, not previous Mono releases.

Fixes dotnet#5633
lambdageek added a commit to lambdageek/xamarin-android that referenced this pull request Feb 26, 2021
This depends on a fix to mono/mono#18893 (make interp only mode
distinct from MONO_AOT_MODE_LAST) which was done in
mono/mono#20159 but only for .NET 6, not previous Mono releases.

Fixes dotnet#5633
lambdageek added a commit to lambdageek/xamarin-android that referenced this pull request Mar 2, 2021
This depends on a fix to mono/mono#18893 (make interp only mode
distinct from MONO_AOT_MODE_LAST) which was done in
mono/mono#20159 but only for .NET 6, not previous Mono releases.

Fixes dotnet#5633
lambdageek added a commit to lambdageek/xamarin-android that referenced this pull request Mar 3, 2021
This depends on a fix to mono/mono#18893 (make interp only mode
distinct from MONO_AOT_MODE_LAST) which was done in
mono/mono#20159 but only for .NET 6, not previous Mono releases.

Fixes dotnet#5633
jonpryor pushed a commit to dotnet/android that referenced this pull request Mar 3, 2021
Fixes: #5633

Context: mono/mono#18893
Context: mono/mono#20159

The `$(AndroidUseInterpreter)` property (f5a9494), née the
`$(_AndroidUseInterpreter)` property (42822e0), only worked with the
Legacy runtime (mono/mono), not the .NET 6 MonoVM runtime.

Update `src/monodroid` so that `$(AndroidUseInterpreter)` is now
meaningful when running on the .NET 6 MonoVM runtime.
When `$(AndroidUseInterpreter)`=True, set the AOT mode to
`MonoAotMode::MONO_AOT_MODE_INTERP_ONLY`.  This causes MonoVM to use
it's builtin interpreter instead of the normal JIT behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants