diff options
author | Peter Zhu <[email protected]> | 2025-01-17 10:44:16 -0500 |
---|---|---|
committer | git <[email protected]> | 2025-01-17 15:44:24 +0000 |
commit | 5fceba661469ee34de462e36c053dce20de02f82 (patch) | |
tree | 90fdf3e9270759913acc5d6b9473db3a53db2c7f /gc/mmtk/mmtk.c | |
parent | 6422ecd25572a5f6a8d43f5c16c7c8e5a5b2035d (diff) |
[ruby/mmtk] Add mmtk_heap_max to GC.config
https://github.com/ruby/mmtk/commit/6a78ffaf16
Diffstat (limited to 'gc/mmtk/mmtk.c')
-rw-r--r-- | gc/mmtk/mmtk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gc/mmtk/mmtk.c b/gc/mmtk/mmtk.c index b5be2c295c..75f0362eba 100644 --- a/gc/mmtk/mmtk.c +++ b/gc/mmtk/mmtk.c @@ -637,6 +637,7 @@ rb_gc_impl_config_get(void *objspace_ptr) rb_hash_aset(hash, ID2SYM(rb_intern_const("mmtk_heap_mode")), rb_str_new_cstr((const char *)mmtk_heap_mode())); size_t heap_min = mmtk_heap_min(); if (heap_min > 0) rb_hash_aset(hash, ID2SYM(rb_intern_const("mmtk_heap_min")), RB_ULONG2NUM(heap_min)); + rb_hash_aset(hash, ID2SYM(rb_intern_const("mmtk_heap_max")), RB_ULONG2NUM(mmtk_heap_max())); return hash; } |