-
The main module's constructor seems to be called by the runtime before its thread local storage has been initialized. Should this be the case? Perhaps it is just my ignorance, but this seems a bit off to me. |
Beta Was this translation helpful? Give feedback.
Answered by
sbc100
Jun 27, 2023
Replies: 1 comment 4 replies
-
That certainly should not be the case no. TLS initialization should happen before any code (including static constructors) run. Perhaps I'm not understanding correctly.. what do you mean by "main module's constructor" |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In order works
__wasm_call_ctors
is the thing that actually calls_emscripten_tls_init
.. but this is by design.