Destructors, deallocateAll, and GCAllocator
Brian Schott via Digitalmars-d Mon, 24 Aug 2015 12:30:40 -0700
I've discovered that several allocators in
std.experimental.allocator call deallocateAll on their parent
allocators during their destructors. This is not a problem unless
the parent allocator happens to be GCAllocator and the original
destructor call was caused by a GC collection. GC.free cannot be
called while the GC is active. (The resulting
InvalidMemoryOperationError is why DCD 0.7.0 final isn't out
today) Any ideas how this problem should be solved?
