diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2023-09-06 10:27:57 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2023-09-06 11:18:50 -0400 |
| commit | b3b57f70cc1ee6f40ff10b2abaa51889abce2331 (patch) | |
| tree | 7e5fe9d9c062564a3ab912e923707bb36e5fce97 /test/ruby | |
| parent | a52ac350ccb8eb2ab394548844ffe681f9f02d0f (diff) | |
Fix missing write barrier in iseq instruction list
There's a missing write barrier for operands in the iseq instruction
list, which can cause crashes.
It can be reproduced when Ruby is compiled with `-DRUBY_DEBUG_ENV=1`.
Using the following command:
```
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=0 RUBY_DEBUG=gc_stress ruby -w --disable=gems -Itool/lib -W0 test.rb
```
The following script crashes:
```
require "test/unit"
```
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8385
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
