summaryrefslogtreecommitdiff
path: root/test/ruby/test_integer.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-01-03 09:53:55 -0500
committerPeter Zhu <peter@peterzhu.ca>2024-01-03 15:41:08 -0500
commit46f7fac878540fd555b502a2c5a5b5e2a6c7413f (patch)
tree04b4b3d678337db7664c7b94ca6a05c75fd11919 /test/ruby/test_integer.rb
parent7304d56236347eec1ce20cbdd0b44842d4cb7c2b (diff)
Free rb_native_thread of main thread
The rb_native_thread gets reported as a memory leak by the macOS leaks tool: $ RUBY_FREE_AT_EXIT=1 leaks -q --atExit -- ./miniruby -e "" STACK OF 1 INSTANCE OF 'ROOT LEAK: <calloc in ruby_xcalloc_body>': 6 dyld 0x1818a90e0 start + 2360 5 miniruby 0x104730128 main + 88 main.c:58 4 miniruby 0x1047d7710 ruby_init + 16 eval.c:102 3 miniruby 0x1047d757c ruby_setup + 112 eval.c:83 2 miniruby 0x104977278 Init_BareVM + 524 vm.c:4193 1 miniruby 0x1047f2478 ruby_xcalloc_body + 176 gc.c:12878 0 libsystem_malloc.dylib 0x181a67b78 _malloc_zone_calloc_instrumented_or_legacy + 100 ==== 1 (176 bytes) ROOT LEAK: <calloc in ruby_xcalloc_body 0x126604780> [176]
Diffstat (limited to 'test/ruby/test_integer.rb')
0 files changed, 0 insertions, 0 deletions