diff options
author | Jean Boussier <[email protected]> | 2025-06-12 15:18:22 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-06-12 17:08:22 +0200 |
commit | 7c22330cd2b5430aa4c284aca2a5db9478d971e0 () | |
tree | db6af973ce7bcc0376aa9830033cad5cef12c80a /vm.c | |
parent | de4b9103815926bb43d5af3f0cb5dbea3749fe2f (diff) |
Allocate `rb_shape_tree` statically
There is no point allocating it during init, it adds a useless indirection.
Notes: Merged: https://.com/ruby/ruby/pull/13596
-rw-r--r-- | vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -736,8 +736,8 @@ vm_stat(int argc, VALUE *argv, VALUE self) SET(constant_cache_invalidations, ruby_vm_constant_cache_invalidations); SET(constant_cache_misses, ruby_vm_constant_cache_misses); SET(global_cvar_state, ruby_vm_global_cvar_state); - SET(next_shape_id, (rb_serial_t)rb_shape_tree->next_shape_id); - SET(shape_cache_size, (rb_serial_t)rb_shape_tree->cache_size); #undef SET #if USE_DEBUG_COUNTER |