Skip to content
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

[wasi] Implement TODO in mono-threads-wasi.S #101337

Merged
merged 8 commits into from
Jul 4, 2024

Conversation

akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Apr 20, 2024

We're using an LLVM version that contains support for __stack_low and __stack_high so we can use it to get the wasm stack bounds.

Noticed this TODO and since we're using an LLVM version that contains this change we can fix it.
@akoeplinger
Copy link
Member Author

looks like this is breaking something so marking as no-merge for now:

[17:59:58] info: [MONO] error: * Assertion at /__w/1/s/src/mono/mono/utils/mono-threads-wasm.c:235, condition `(guint8*)&tmp > *staddr' not met

@akoeplinger akoeplinger added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Apr 20, 2024
@pavelsavara pavelsavara self-assigned this Apr 22, 2024
@lewing lewing requested a review from radekdoulik April 22, 2024 14:36
@pavelsavara
Copy link
Member

pavelsavara commented Jun 18, 2024

 Wasm.Build.Tests.WasmTemplateTests.ConsoleBuildAndRunDefault(config: "Debug", relinking: True) [FAIL]
[MONO] * Assertion at /__w/1/s/src/mono/mono/utils/mono-threads-wasm.c:48, condition `<disabled>' not met

https://helixre107v0xdcypoyl9e7f.blob.core.windows.net/dotnet-runtime-refs-pull-101337-merge-396c837070724d6abb/Workloads-ST-Wasm.Build.Tests.WasmTemplateTests/1/console.1a3f5f65.log?helixlogtype=result

@pavelsavara pavelsavara removed the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Jun 20, 2024
src/mono/mono/utils/CMakeLists.txt Outdated Show resolved Hide resolved
@pavelsavara
Copy link
Member

It seems that some of the System.Threading.Tests.SemaphoreSlimTests and System.Threading.Tasks.Tests.TaskContinueWithTests are deadlocking. I'm quite sure it's unrelated to stack size and that we could merge.

@radekdoulik do you see same issues on emscripten bump ?

@pavelsavara
Copy link
Member

/ba-g I opened #104418 for the deadlocks

@pavelsavara pavelsavara merged commit 2a72651 into dotnet:main Jul 4, 2024
76 of 79 checks passed
@akoeplinger akoeplinger deleted the fix-wasi-todo branch July 4, 2024 13:15
@github-actions github-actions bot locked and limited conversation to collaborators Aug 4, 2024
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.

4 participants