diff options
author | Logan Chien <tzuhsiang.chien@gmail.com> | 2016-08-26 02:13:00 +0800 |
---|---|---|
committer | Logan Chien <tzuhsiang.chien@gmail.com> | 2016-08-26 02:47:00 +0800 |
commit | a008d4fd7af3b04a3d351a03d56df7c28998690e (patch) | |
tree | e82a2dc300b867ff995b856f1c4d0e503af251b2 /src/wasm-linker.cpp | |
parent | a08643d788dd025345c63798f2e3ed7ca9b12e06 (diff) | |
download | binaryen-a008d4fd7af3b04a3d351a03d56df7c28998690e.tar.gz binaryen-a008d4fd7af3b04a3d351a03d56df7c28998690e.tar.bz2 binaryen-a008d4fd7af3b04a3d351a03d56df7c28998690e.zip |
Fix asm2wasm dead lock caused by empty modules.
This commit fixes an asm2wasm dead lock when asm2wasm is compiling an
empty module, i.e. a module without any functions.
Without this commit, worker threads are likely to leave `workerMain()`
and decrease `liveWorkers` early. Consequently, `waitUntilAllReady()`
will never observe `liveWorkers == numWorkers`.
Diffstat (limited to 'src/wasm-linker.cpp')
0 files changed, 0 insertions, 0 deletions