ZJIT: Mark profiled objects when marking ISEQ (#13784)

This commit is contained in:
Takashi Kokubun 2025-07-09 16:03:23 -07:00 committed by GitHub
parent 1df94aaf08
commit f5085c70f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 128 additions and 61 deletions

8
jit.c
View file

@ -415,6 +415,14 @@ rb_assert_iseq_handle(VALUE handle)
RUBY_ASSERT_ALWAYS(IMEMO_TYPE_P(handle, imemo_iseq));
}
// Assert that we have the VM lock. Relevant mostly for multi ractor situations.
// The GC takes the lock before calling us, and this asserts that it indeed happens.
void
rb_assert_holding_vm_lock(void)
{
ASSERT_vm_locking();
}
int
rb_IMEMO_TYPE_P(VALUE imemo, enum imemo_type imemo_type)
{