Skip to content

Commit 05bd5fd

Browse files
committed
pthread: Enable the noleakcheck mark also for PROXY_TO_PTHREAD
In addition to the existing OFFSCREENCANVAS_SUPPORT configuration, PROXY_TO_PTHREAD now also performs memory allocation internally for use by activeSelectCallbacks. Signed-off-by: Kohei Tokunaga <[email protected]>
1 parent 018f3c3 commit 05bd5fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/libpthread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ var LibraryPThread = {
746746
$pthreadCreateProxied__deps: ['__pthread_create_js'],
747747
$pthreadCreateProxied: (pthread_ptr, attr, startRoutine, arg) => ___pthread_create_js(pthread_ptr, attr, startRoutine, arg),
748748

749-
#if OFFSCREENCANVAS_SUPPORT
749+
#if OFFSCREENCANVAS_SUPPORT || PROXY_TO_PTHREAD
750750
// ASan wraps the emscripten_builtin_pthread_create call in
751751
// __lsan::ScopedInterceptorDisabler. Unfortunately, that only disables it on
752752
// the thread that made the call. __pthread_create_js gets proxied to the

0 commit comments

Comments
 (0)