diff options
author | Soutaro Matsumoto <matsumoto@soutaro.com> | 2023-12-07 10:37:00 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-07 10:37:00 +0900 |
commit | 4f213ea1baa590c463c3554a6ff418d10dc291e0 (patch) | |
tree | 88b04188b5b3d7ee53dead4fef446d44a6180063 /test | |
parent | 5078aa825c943f757f53a12264ab5e5c4cf1542e (diff) | |
download | ruby-4f213ea1baa590c463c3554a6ff418d10dc291e0.tar.gz |
Fix SEGV caused by `GC::Profiler.raw_data` (#9122)
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_gc.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb index b22f5b8a65..78bf9deb6b 100644 --- a/test/ruby/test_gc.rb +++ b/test/ruby/test_gc.rb @@ -579,6 +579,14 @@ class TestGc < Test::Unit::TestCase RUBY end + def test_profiler_raw_data + GC::Profiler.enable + GC.start + assert GC::Profiler.raw_data + ensure + GC::Profiler.disable + end + def test_profiler_total_time GC::Profiler.enable GC::Profiler.clear |