mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Get rid of GET_SHAPE_TREE()
It's a useless indirection.
This commit is contained in:
parent
e070d93573
commit
de4b910381
Notes:
git
2025-06-12 15:08:39 +00:00
4 changed files with 49 additions and 56 deletions
4
vm.c
4
vm.c
|
@ -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)GET_SHAPE_TREE()->next_shape_id);
|
||||
SET(shape_cache_size, (rb_serial_t)GET_SHAPE_TREE()->cache_size);
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue