You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't do memory operations in pthreads before the runtime is initialized. NFC (#12052)
Pthreads.initMainThreadBlock is called during "preRun" (before compiled code is ready) and
Pthreads.initRuntime is called during "atInit" (when compiled code is ready, just before
global ctors). This moves some code from the former into the latter. Specifically it moves
all allocation and memory operations.
This leaves initMainThreadBlock to only do pure JS operations for preloading the workers,
and everything else to initRuntime.
0 commit comments