-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[mono][wasm] Initialize debugger_tls_id on WASM as well. #66560
Conversation
Some code paths are using mono_native_tls_get_value () instead of GET_DEBUGGER_TLS ().
Tagging subscribers to this area: @thaystg Issue DetailsSome code paths are using mono_native_tls_get_value () instead of GET_DEBUGGER_TLS ().
|
Some comments:
|
This was causing (some) of the 3.1.x crashes. |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
I think it's okay to initialize it, I would like to know which code paths were causing the crashes on 3.1.x, because as far as I remember when I implemented it, the code paths that are being used when debugging on wasm are correctly using the GET_DEBUGGER_TLS. |
debugger_agent_begin_exception_filter () for example. Having two ways to access this seems error prone. |
Yeah, I agree to use "mono_native_tls_get_value () on wasm as well, its not really perf critical and will be needed later for threading support", as you suggested above. |
cc @kg |
I think this works already, but I'll keep it in mind if things break once I get back to eventpipe |
Some code paths are using mono_native_tls_get_value () instead of GET_DEBUGGER_TLS ().