[D-runtime] Committed and uncommitted memory in the GC

Leandro Lucarella leandro.lucarella at sociomantic.com
Thu May 30 07:46:23 PDT 2013


On Thu, May 30, 2013 at 04:37:17PM +0200, Leandro Lucarella wrote:
> On Thu, May 30, 2013 at 03:30:52PM +0200, Jacob Carlborg wrote:
> > 
> > On 30 maj 2013, at 13:40, Leandro Lucarella <leandro.lucarella at sociomantic.com> wrote:
> > 
> > > Really? I thought this was really old, like D1 phobos old.
> > 
> > Most of the druntime is based on the Tango runtime which Sean wrote. I
> > think that he started by modifying the D1 runtime and built on top of
> > that.
> 
> Yes, I also think this is how story goes, I just saw the committed
> memory stuff was from D1 phobos ages and Sean just kept it in
> Ares/Tango.

This is effectively in Phobos 1 at least:
https://github.com/D-Programming-Language/phobos/blob/phobos-1.x/internal/gc/win32.d#L27

My guess is this code was written when DMD was Windows only.

According to the history which I guess Brad imported first to svn and
then to Git, the code goes back to phobos 0.1, when the GC was written
in C  ;)
https://github.com/D-Programming-Language/phobos/blob/ffa1d1d7060da9f1801e0cc76eab9a2f251372ca/gc/win32.c#L22

-- 
Leandro Lucarella
Senior R&D Developer
Sociomantic Labs GmbH <http://www.sociomantic.com>


More information about the D-runtime mailing list