1
1
Fork 0
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:
Eelco Dolstra 2025-08-04 19:01:33 +02:00
parent c4c3203b7b
commit a3ff648f90

View file

@ -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. */