Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix I_HOLD_LOCK assertion violation in child process
Issue #682 (bdwgc). Update `GC_lock_holder` in `fork_child_proc()` as value of `thread_id_self()` might differ from that of the parent process. * include/private/gc_locks.h [(NN_PLATFORM_CTR || NINTENDO_SWITCH) && GC_ASSERTIONS] (SET_LOCK_HOLDER): Define macro (to no-op). * pthread_support.c [CAN_HANDLE_FORK] (fork_child_proc): Call `SET_LOCK_HOLDER()` at the beginning of function.
- Loading branch information