Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
eval-gc.hh File Reference
#include <cstddef>
#include <cstring>
#include "nix/expr/config.hh"
#include <memory>

Go to the source code of this file.

Classes

struct  gc
struct  gc_cleanup

Macros

#define GC_MALLOC_ATOMIC   std::malloc

Typedefs

template<typename T>
using traceable_allocator = std::allocator<T>
template<typename T>
using gc_allocator = std::allocator<T>
template<typename T>
using gc_root_allocator = std::allocator<T>

Functions

void nix::initGC ()
void nix::assertGCInitialized ()

Function Documentation

◆ assertGCInitialized()

void nix::assertGCInitialized ( )

Make sure initGC has already been called.

◆ initGC()

void nix::initGC ( )

Initialise the Boehm GC, if applicable.