diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-08-07 14:54:35 -0400 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-08-07 16:42:24 -0400 |
| commit | e271feb8663415d9ed8a55e0e78bd655a16e0201 (patch) | |
| tree | 32440d35b8c22d6e7582a1c2f80432c5da332a02 /test/ruby/test_lambda.rb | |
| parent | 3719b3d74d7091aafd486b8cd0e8985208b4d8c0 (diff) | |
Fix memory leak reported with YJIT
The following memory leak gets reported with RUBY_FREE_AT_EXIT and YJIT
enabled because the memory for yjit_root is never freed.
STACK OF 1 INSTANCE OF 'ROOT LEAK: <calloc in rb_gc_impl_calloc>':
11 dyld 0x18067e0e0 start + 2360
10 miniruby 0x1024b67d8 main + 100 main.c:62
9 miniruby 0x10256e0ec ruby_options + 156 eval.c:117
8 miniruby 0x102681164 ruby_process_options + 5140 ruby.c:3097
7 miniruby 0x10256f7dc rb_ensure + 180 eval.c:0
6 miniruby 0x102681c64 load_file_internal + 996 ruby.c:2685
5 miniruby 0x102682368 ruby_opt_init + 380 ruby.c:1817
4 miniruby 0x102848e38 yjit::yjit::yjit_init::h3cea491822b80cef + 360 yjit.rs:84
3 miniruby 0x10278f7d4 rb_yjit_init_gc_hooks + 28 yjit.c:1273
2 miniruby 0x10258a228 rb_data_typed_object_zalloc + 132 gc.c:989
1 miniruby 0x102586d88 rb_gc_impl_calloc + 148 default.c:8517
0 libsystem_malloc.dylib 0x180840cac _malloc_zone_calloc_instrumented_or_legacy + 128
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11326
Diffstat (limited to 'test/ruby/test_lambda.rb')
0 files changed, 0 insertions, 0 deletions
