diff options
author | Peter Zhu <[email protected]> | 2023-01-03 10:59:47 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-01-04 09:10:58 -0500 |
commit | b8a3f1bd456f92866c4a7bd83235f78c574784a8 (patch) | |
tree | 843a013bce52ba539df4056462e7be51e01b65a0 /lib/uri/common.rb | |
parent | 3bcf92d8afb62a10dd4c700a4925d2ccac43f5a2 (diff) |
Fix crash in tracing object allocations
ObjectSpace.trace_object_allocations_start could crash since it adds a
TracePoint for when objects are freed. However, TracePoint could crash
since it modifies st tables while inside the GC that is trying to free
the object. This could cause a memory allocation to happen which would
crash if it triggers another GC.
See a crash log: http://ci.rvm.jp/results/trunk@ruby-sp1/4373707
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7058
Diffstat (limited to 'lib/uri/common.rb')
0 files changed, 0 insertions, 0 deletions