diff options
author | Jeremy Evans <[email protected]> | 2021-06-15 15:27:57 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-07-28 13:40:03 +0900 |
commit | b3d62a77d928eff01268ca7fa1c1c0966702926d (patch) | |
tree | d2232838c62a4e81b4a880113b501c381e78d5dd /internal/array.h | |
parent | 218c3b25480d7de904a24d4508e7135c160eb871 (diff) |
[ruby/zlib] Synchronize access to zstream to prevent segfault in multithreaded use
I'm not sure whether this handles all multithreaded use cases,
but this handles the example that crashes almost immediately
and does 10,000,000 total deflates using 100 separate threads.
To prevent the tests from taking forever, the committed test
for this uses only 10,000 deflates across 10 separate threads,
which still causes a segfault in the previous implementation
almost immediately.
Fixes [Bug #17803]
https://github.com/ruby/zlib/commit/4b1023b3f2
Diffstat (limited to 'internal/array.h')
0 files changed, 0 insertions, 0 deletions