mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix simple test on platforms where compaction is not supported
844588f915
made it so that trying to call
gc_verify_compaction_references on unsupported platform result in an
exception rather than a crash. Rescue the exception in a YJIT btest
that uses gc_verify_compaction_references.
This commit is contained in:
parent
d09cb64ae5
commit
ba4bf8a1e6
Notes:
git
2021-10-22 23:54:05 +09:00
Merged: https://github.com/ruby/ruby/pull/5004 Merged-By: XrXr
1 changed files with 5 additions and 1 deletions
|
@ -662,7 +662,11 @@ assert_equal "good", %q{
|
|||
foo
|
||||
foo
|
||||
|
||||
GC.verify_compaction_references(double_heap: true, toward: :empty)
|
||||
begin
|
||||
GC.verify_compaction_references(double_heap: true, toward: :empty)
|
||||
rescue NotImplementedError
|
||||
# in case compaction isn't supported
|
||||
end
|
||||
|
||||
foo
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue