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:
parent
0fd8f542a8
commit
eaeb994d8b
4 changed files with 74 additions and 5 deletions
|
@ -501,4 +501,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)();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue