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.
| 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 | |
| 394 | weak_alias(__pthread_create, emscripten_builtin_pthread_create); |
| 395 | weak_alias(__pthread_create, pthread_create); |
nothing calls this directly
no test coverage detected