mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Suppress warnings
- `ractor_sync_terminate_atfork` is unused unless fork is working - `cr` in `vm_lock_leave` is only for debugging
This commit is contained in:
parent
edbd9ed468
commit
ec20f7feb6
2 changed files with 3 additions and 1 deletions
|
@ -507,12 +507,14 @@ ractor_free_all_ports(rb_ractor_t *cr)
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(HAVE_WORKING_FORK)
|
||||
static void
|
||||
ractor_sync_terminate_atfork(rb_vm_t *vm, rb_ractor_t *r)
|
||||
{
|
||||
ractor_free_all_ports(r);
|
||||
r->sync.legacy = Qnil;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Ractor#monitor
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue