summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorMatt Valentine-House <matt@eightbitraptor.com>2023-02-17 13:32:51 +0000
committerMatt Valentine-House <matt@eightbitraptor.com>2023-04-06 11:07:16 +0100
commitd91a82850ac337c80807743bc0841369a8a1748c (patch)
tree6895a67099d8e77b3c25db7ee25fdfcc1a3b557a /yjit.c
parentb0297feb1f487d466ad1186898b4e36209fcd59e (diff)
downloadruby-d91a82850ac337c80807743bc0841369a8a1748c.tar.gz
Pull the shape tree out of the vm object
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit.c b/yjit.c
index 431a774880..2d3b7c9e9d 100644
--- a/yjit.c
+++ b/yjit.c
@@ -1105,7 +1105,7 @@ static VALUE
object_shape_count(rb_execution_context_t *ec, VALUE self)
{
// next_shape_id starts from 0, so it's the same as the count
- return ULONG2NUM((unsigned long)GET_VM()->next_shape_id);
+ return ULONG2NUM((unsigned long)GET_SHAPE_TREE()->next_shape_id);
}
// Assert that we have the VM lock. Relevant mostly for multi ractor situations.