mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
ZJIT: Mark profiled objects when marking ISEQ (#13784)
This commit is contained in:
parent
1df94aaf08
commit
f5085c70f2
16 changed files with 128 additions and 61 deletions
8
jit.c
8
jit.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue