MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __pthread_exit

Function __pthread_exit

system/lib/pthread/pthread_create.c:388–392  ·  view source on GitHub ↗

Mark as `no_sanitize("address")` since emscripten_pthread_exit destroys the current thread and runs its exit handlers. Without this asan injects a call to __asan_handle_no_return before emscripten_unwind_to_js_event_loop which seem to cause a crash later down the line.

Source from the content-addressed store, hash-verified

386// a call to __asan_handle_no_return before emscripten_unwind_to_js_event_loop
387// which seem to cause a crash later down the line.
388__attribute__((no_sanitize("address")))
389_Noreturn void __pthread_exit(void* retval) {
390 _emscripten_thread_exit(retval);
391 emscripten_unwind_to_js_event_loop();
392}
393
394weak_alias(__pthread_create, emscripten_builtin_pthread_create);
395weak_alias(__pthread_create, pthread_create);

Callers

nothing calls this directly

Calls 2

no_sanitizeFunction · 0.85
_emscripten_thread_exitFunction · 0.85

Tested by

no test coverage detected