-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
Milestone
Description
Description
Building AOT images with threading enabled is failing.
Reproduction Steps
When building AOT images with threading enabled, the following lines:
runtime/src/mono/wasm/runtime/driver.c
Lines 479 to 482 in 3d74b00
| #ifndef DISABLE_THREADS | |
| monoeg_g_setenv ("MONO_THREADS_SUSPEND", "coop", 0); | |
| monoeg_g_setenv ("MONO_SLEEP_ABORT_LIMIT", "5000", 0); | |
| #endif |
cause the following error:
`not compiled with safepoints`
@lambdageek mentioned that the environment needs to have MONO_THREADS_SUSPEND=coop set before invoking the compiler, but the compilation fails with the following:
* Assertion at /__w/Uno.DotnetRuntime.WebAssembly/Uno.DotnetRuntime.WebAssembly/runtime/src/mono/mono/mini/mini.c:2752, condition `mini_safepoints_enabled ()' not met
runtime/src/mono/mono/mini/mini.h
Lines 2931 to 2937 in e3a4db9
| mini_safepoints_enabled (void) | |
| { | |
| #if defined (TARGET_WASM) | |
| return FALSE; | |
| #else | |
| return TRUE; | |
| #endif |
Expected behavior
Compilation succeeds.
Actual behavior
See above.
Regression?
No
Known Workarounds
None
Configuration
Other information
No response