diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-16 07:51:09 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-16 07:51:09 +0000 |
commit | f547d3914853e99fc11a1697b851c9e0d93aaadd (patch) | |
tree | 8fe9258e8d690c6f3ab6b281f972f53b5a539dea /regerror.c | |
parent | 9fa6af24f4052bcb1d006ec04b48af340a7de63c (diff) | |
download | ruby-f547d3914853e99fc11a1697b851c9e0d93aaadd.tar.gz |
thread_pthread.c: fix memory leak from fork loop leapfrog (v3)
Constantly forking a single-threaded process in a loop leads to
a memory leak when using POSIX timers. This fixes the leak for
GNU/Linux systems running glibc.
v2: disarm before timer_delete
v3: ubf_timer_arm prevents double-arming
This unreverts r66291 / commit ab73ef6b7037039a05edcbf2a0c1b1108197e036
Example Linux-only reproduction may be found in:
r66290 / commit 043047a8fd5315d98eac38ddbd04ebe8db361817
Note: FreeBSD 11.2 still leaks, I'm not sure why, yet.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regerror.c')
0 files changed, 0 insertions, 0 deletions