diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-01-27 10:46:57 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-01-30 10:01:46 +0900 |
commit | 716e05b82338d75452e86c999ae3e5874a642ecd (patch) | |
tree | c09a8d110092038a0a9f28f9d107aab544ff12fe /test/ruby/test_gc_compact.rb | |
parent | 52bb32d6b71365cb24273de3eed5a712206815f3 (diff) |
Fixed a segfault `GC.verify_compaction_references`
Which is by coercion of `Qundef`, when any keyword argument
without `toward:` option is given. [Bug #16598]
Diffstat (limited to 'test/ruby/test_gc_compact.rb')
-rw-r--r-- | test/ruby/test_gc_compact.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_gc_compact.rb b/test/ruby/test_gc_compact.rb index e93e775279..75d9b01f2c 100644 --- a/test/ruby/test_gc_compact.rb +++ b/test/ruby/test_gc_compact.rb @@ -39,6 +39,8 @@ class TestGCCompact < Test::Unit::TestCase hash = list_of_objects.hash GC.verify_compaction_references(toward: :empty) assert_equal hash, list_of_objects.hash + GC.verify_compaction_references(double_heap: false) + assert_equal hash, list_of_objects.hash end def walk_ast ast |