Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/threading.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ jl_ptls_t jl_init_threadtls(int16_t tid)
#if !defined(_OS_WINDOWS_) && !defined(JL_DISABLE_LIBUNWIND) && !defined(LLVMLIBUNWIND)
// ensures libunwind TLS space for this thread is allocated eagerly
// to make unwinding async-signal-safe even when using thread local caches.
unw_ensure_tls();
void(*jl_unw_ensure_tls)(void) = NULL;
jl_dlsym(jl_exe_handle, "unw_ensure_tls", (void**)&jl_unw_ensure_tls, 0);
if (jl_unw_ensure_tls)
jl_unw_ensure_tls();
#endif

return ptls;
Expand Down