mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
add HAVE_BOEHMGC guards to batched allocation functions
This commit is contained in:
parent
8e2eaaaf69
commit
4d629c4f7a
2 changed files with 11 additions and 4 deletions
|
@ -133,11 +133,13 @@ private:
|
|||
/* Cache used by prim_match(). */
|
||||
std::shared_ptr<RegexCache> regexCache;
|
||||
|
||||
#if HAVE_BOEHMGC
|
||||
/* Allocation cache for GC'd Value objects. */
|
||||
std::shared_ptr<void *> valueAllocCache;
|
||||
|
||||
/* Allocation cache for size-1 Env objects. */
|
||||
std::shared_ptr<void *> env1AllocCache;
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue