mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Call GC_allow_register_threads() to enable parallel marking in Boehm GC
This commit is contained in:
parent
c4c3203b7b
commit
a3ff648f90
1 changed files with 3 additions and 0 deletions
|
|
@ -53,6 +53,9 @@ static inline void initGCReal()
|
|||
|
||||
GC_INIT();
|
||||
|
||||
/* Enable parallel marking. */
|
||||
GC_allow_register_threads();
|
||||
|
||||
/* Register valid displacements in case we are using alignment niches
|
||||
for storing the type information. This way tagged pointers are considered
|
||||
to be valid, even when they are not aligned. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue