libroot: Reinitialize global heap lock after fork.

The per-heap locks are reinitialized already by the routine which
invokes this one, but this global lock was previously missed.

May fix a deadlock reported by trungnt2910 to happen in the .NET port.
This commit is contained in:
Augustin Cavalier
2023-08-04 15:19:41 -04:00
parent 6d3065508f
commit 77dd55aae5
@@ -79,6 +79,8 @@ __init_after_fork(void)
sHeapBase);
exit(1);
}
hoardLockInit(sHeapLock, "heap");
}