mirror of
https://github.com/dlang/phobos.git
synced 2025-05-11 14:41:08 +03:00
Do not add Impl._count
to GC roots
This commit is contained in:
parent
c838ee3a5f
commit
5c63cc738e
1 changed files with 1 additions and 1 deletions
|
@ -2500,7 +2500,7 @@ if (!is(T == class))
|
||||||
_store = cast(Impl*) enforce(malloc(Impl.sizeof));
|
_store = cast(Impl*) enforce(malloc(Impl.sizeof));
|
||||||
if (hasIndirections!T)
|
if (hasIndirections!T)
|
||||||
{
|
{
|
||||||
GC.addRange(&_store._payload, Impl.sizeof);
|
GC.addRange(&_store._payload, T.sizeof);
|
||||||
}
|
}
|
||||||
emplace(&_store._payload, args);
|
emplace(&_store._payload, args);
|
||||||
_store._count = 1;
|
_store._count = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue