mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Place all non-default GC API behind USE_SHARED_GC
So that it doesn't get included in the generated binaries for builds that don't support loading shared GC modules Co-Authored-By: Peter Zhu <peter@peterzhu.ca>
This commit is contained in:
parent
d61933e503
commit
551be8219e
Notes:
git
2024-11-25 13:05:41 +00:00
12 changed files with 294 additions and 9491 deletions
|
@ -1676,12 +1676,15 @@ after_exec(void)
|
|||
static void
|
||||
before_fork_ruby(void)
|
||||
{
|
||||
rb_gc_before_fork();
|
||||
before_exec();
|
||||
}
|
||||
|
||||
static void
|
||||
after_fork_ruby(rb_pid_t pid)
|
||||
{
|
||||
rb_gc_after_fork(pid);
|
||||
|
||||
if (pid == 0) {
|
||||
// child
|
||||
clear_pid_cache();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue