wasi-libc/dlmalloc
Moritz Sichert ba5318e9a4
Acquire the global lock before initializing malloc (#410)
In a multi-threaded execution we need to make sure that only exactly one
thread initializes malloc. The function try_init_allocator() can't
easily be made thread-safe, so just move the call to
try_init_allocator() inside the block that holds the lock.
2023-07-11 15:33:07 -07:00
..
include WASI libc prototype implementation. 2019-03-27 07:59:55 -07:00
src Acquire the global lock before initializing malloc (#410) 2023-07-11 15:33:07 -07:00