diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-07-23 10:32:29 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-07-23 14:45:45 -0400 |
| commit | 6770bb4a8cbe47bace51952b49d192dc7ae38181 (patch) | |
| tree | b572849d7173d9f7389dfbd16c76059f4aad16e4 /spec/ruby/core/array/deconstruct_spec.rb | |
| parent | cb863907d8eb25a87288b71856126c0f5e891d26 (diff) | |
Fix running GC in finalizer when RUBY_FREE_AT_EXIT
The following code crashes because the GC ran during finalizers will
cause T_ZOMBIE objects to be on the heap, which crashes when we call
rb_gc_obj_free on it:
raise_proc = proc do |id|
GC.start
end
1000.times do
ObjectSpace.define_finalizer(Object.new, raise_proc)
end
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11229
Diffstat (limited to 'spec/ruby/core/array/deconstruct_spec.rb')
0 files changed, 0 insertions, 0 deletions
