1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 13:21:47 +02:00

Always disable GC in a coroutine unless the patch is applied

This commit is contained in:
Yorick van Pelt 2023-03-01 15:07:00 +01:00
parent 4c73eab923
commit 176005749c
No known key found for this signature in database
GPG key ID: A36E70F9DC014A15
4 changed files with 28 additions and 11 deletions

View file

@ -501,10 +501,10 @@ struct StackAllocator {
static StackAllocator *defaultAllocator;
};
/* Disabling GC when entering a coroutine (on macos).
/* Disabling GC when entering a coroutine (without the boehm patch).
mutable to avoid boehm gc dependency in libutil.
*/
extern std::shared_ptr<void> (*create_disable_gc)();
extern std::shared_ptr<void> (*create_coro_gc_hook)();
}