1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/zlib
Jeremy Evans b3d62a77d9 [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
2021-07-28 13:40:03 +09:00
..
win32 zlib: patches for mswin64 2020-11-24 08:27:08 +09:00
.gitignore ignore external library sources [ci skip] 2018-01-26 03:13:33 +00:00
depend dependency updates 2021-04-13 14:30:21 +09:00
extconf.rb Found library is not usable if the header is not found 2021-07-06 01:17:38 +09:00
extlibs zlib: patches for mswin64 2020-11-24 08:27:08 +09:00
zlib.c [ruby/zlib] Synchronize access to zstream to prevent segfault in multithreaded use 2021-07-28 13:40:03 +09:00
zlib.gemspec [ruby/zlib] gemspec: Remove unused files 2021-04-20 21:19:41 +09:00