From d91a82850ac337c80807743bc0841369a8a1748c Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Fri, 17 Feb 2023 13:32:51 +0000 Subject: Pull the shape tree out of the vm object --- yjit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yjit.c') 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. -- cgit v1.2.1