diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-12-20 16:48:48 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-12-23 09:03:32 -0500 |
| commit | f4476f0d07c781c906ed1353d8e1be5a7314d6e7 (patch) | |
| tree | 092d0330e8d7ebdd300b4d12a61ed24a800c171d /spec/ruby/command_line/rubyopt_spec.rb | |
| parent | 4e12c2577839bd1696a3b318988be1c4de807d48 (diff) | |
Disable GC during RUBY_INTERNAL_EVENT_NEWOBJ
We must disable GC when running RUBY_INTERNAL_EVENT_NEWOBJ hooks because
the callback could call xmalloc which could potentially trigger a GC,
and a lot of code is unsafe to trigger a GC right after an object has
been allocated because they perform initialization for the object and
assume that the GC does not trigger before then.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12419
Diffstat (limited to 'spec/ruby/command_line/rubyopt_spec.rb')
0 files changed, 0 insertions, 0 deletions
