1
0
Fork 0
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:
pennae 2022-01-05 01:48:26 +01:00
parent 8e2eaaaf69
commit 4d629c4f7a
2 changed files with 11 additions and 4 deletions

View file

@ -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: