What's the go with the GC these days?

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Jan 7 19:09:02 UTC 2019


On Mon, Jan 07, 2019 at 06:59:37PM +0000, Neia Neutuladh via Digitalmars-d wrote:
> On Mon, 07 Jan 2019 10:21:58 -0500, Steven Schveighoffer wrote:
[...]
> > I think the biggest improvement for D's GC could be the thread-local
> > pools (and avoid stop-the-world for those), but since casting shared
> > and local data around is valid, I don't know how it can be
> > implemented without language changes.
> 
> Like I said before, casting to shared would have to invoke a runtime
> function. That's a runtime change and compiler change, but I don't
> think the spec says anything about whether any cast might invoke a
> runtime function.

Casting between arrays of different types does already call a druntime
function in some cases (e.g., casting int[] to S[] where S is some
struct).  So I'd say it's fair game.


T

-- 
Only boring people get bored. -- JM


More information about the Digitalmars-d mailing list