Skip to content

Commit 525a9b5

Browse files
committed
Merge pull request #1 from dawgfoto/fix10701
regression test for Issue 10701
2 parents 71ca582 + b28fc2b commit 525a9b5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/rt/lifetime.d

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,15 @@ void processGCMarks(BlkInfo* cache, scope rt.tlsgc.IsMarkedDg isMarked)
421421
}
422422
}
423423

424+
unittest
425+
{
426+
import core.memory;
427+
// Bugzilla 10701 - segfault in GC
428+
ubyte[] result; result.length = 4096;
429+
GC.free(result.ptr);
430+
GC.collect();
431+
}
432+
424433
/**
425434
Get the cached block info of an interior pointer. Returns null if the
426435
interior pointer's block is not cached.

0 commit comments

Comments
 (0)