Skip to content

Commit 5fce398

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 42b9ac5 commit 5fce398

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
@@ -756,7 +756,7 @@ var LibraryPThread = {
756756
$pthreadCreateProxied__deps: ['__pthread_create_js'],
757757
$pthreadCreateProxied: (pthread_ptr, attr, startRoutine, arg) => ___pthread_create_js(pthread_ptr, attr, startRoutine, arg),
758758

759-
#if OFFSCREENCANVAS_SUPPORT
759+
#if OFFSCREENCANVAS_SUPPORT || PROXY_TO_PTHREAD
760760
// ASan wraps the emscripten_builtin_pthread_create call in
761761
// __lsan::ScopedInterceptorDisabler. Unfortunately, that only disables it on
762762
// the thread that made the call. __pthread_create_js gets proxied to the

0 commit comments

Comments
 (0)