diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2020-04-13 21:09:47 +0200 |
---|---|---|
committer | Andreas Rammhold <andreas@rammhold.de> | 2020-04-13 21:23:54 +0200 |
commit | d2c371927e45c1d4e4f7e4ad331a3f68d67d5469 (patch) | |
tree | a3fc0397eb52caa7f407dca5bf02f4a8f83505b7 /src/libstore | |
parent | 512753f8247b927b62fd9391ee5ba6dda29ea4d4 (diff) |
SourceExprCommand: allocate the vSourceExpr via uncollectable memory
Previously the memory would occasionally be collected during eval since
the GC doesn't consider the member variable as alive / doesn't scan the
region of memory where the pointer lives.
By using the traceable_allocator<T> allocator provided by Boehm GC we
can ensure the memory isn't collected. It should be properly freed when
SourceExprCommand goes out of scope.
Diffstat (limited to 'src/libstore')
0 files changed, 0 insertions, 0 deletions