We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f9b3f5 commit 8ee112cCopy full SHA for 8ee112c
src/containers/openhashset.d
@@ -277,7 +277,9 @@ private:
277
void initialize(size_t nodeCount)
278
{
279
nodes = (cast (Node*) allocator.allocate(nodeCount * Node.sizeof))[0 .. nodeCount];
280
- nodes[] = Node.init;
+ static if (useGC)
281
+ GC.addRange(nodes.ptr, nodes.length * Node.sizeof, typeid(typeof(nodes)));
282
+ nodes[] = Node.init;
283
_length = 0;
284
}
285
0 commit comments