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

Disable GC inside coroutines on mac OS

This commit is contained in:
Yorick van Pelt 2023-02-03 17:50:01 +01:00 committed by Théophane Hufschmitt
parent 81dfc2b012
commit 2c53ef1bfe
3 changed files with 63 additions and 5 deletions

View file

@ -551,4 +551,14 @@ struct StackAllocator {
static StackAllocator *defaultAllocator;
};
/* Disabling GC when entering a coroutine (on macos).
::create is to avoid boehm gc dependency in libutil.
*/
class DisableGC {
public:
DisableGC() {};
virtual ~DisableGC() {};
static std::shared_ptr<DisableGC> (*create)();
};
}