From 510b7ca47e31bf7a761fdabb52bce4b75588b160 Mon Sep 17 00:00:00 2001 From: Dmitry Olshansky Date: Tue, 5 Mar 2013 23:43:26 +0400 Subject: [PATCH] actually there could be interior pointers once string cache is out of scope --- std/d/lexer.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/d/lexer.d b/std/d/lexer.d index e60d9e5..877f647 100644 --- a/std/d/lexer.d +++ b/std/d/lexer.d @@ -3082,11 +3082,11 @@ private: if(size> chunkSize/4) { ubyte* p = cast(ubyte*)GC.malloc(size, - GC.BlkAttr.NO_SCAN | GC.BlkAttr.NO_INTERIOR); + GC.BlkAttr.NO_SCAN); return p[0..size]; } chunkS ~= cast(ubyte*)GC.malloc(chunkSize, - GC.BlkAttr.NO_SCAN | GC.BlkAttr.NO_INTERIOR); + GC.BlkAttr.NO_SCAN); next = 0; } auto slice = chunkS[$-1][next..next+size];