From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: newbie: can't read fast enough... :-) memory leaks...
Date: Wed, 03 Sep 2014 16:19:57 -0400
Date: 2014-09-03T16:19:57-04:00 [thread overview]
Message-ID: <wccmwag5udu.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1409765762.11813.2.camel@obry.net
Pascal Obry <pascal@obry.net> writes:
> Le mercredi 03 septembre 2014 à 13:28 -0400, Robert A Duff a écrit :
>> I have successfully used the BDW conservative garbage collector with
>> Ada.
>
> Is that with GNAT?
Yes, it was. This was years ago, so I don't remember details.
I think it was on Linux, but it might have been windows.
> I've never looked at garbage collector. Is it possible with Ada to
> create a pool using BDW garbage collector and make it the default pool?
I didn't use storage pools. I think I hacked the GNAT runtimes a little
bit. E.g. change System.Memory to use GC_malloc, which is Boehm's
version of malloc. And I had to change how tasks are created to
call Boehm's version of thread-create.
> Would that work as expected?
I don't think so, at least not in a simple way. GC can't work within a
single pool -- it would need to trace pointers that point into the pool
from outside it (from other pools, from the stack, registers, ...).
- Bob
next prev parent reply other threads:[~2014-09-03 20:19 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-03 9:38 newbie: can't read fast enough... :-) memory leaks gdotone
2014-09-03 10:17 ` Pascal Obry
2014-09-03 10:48 ` G.B.
2014-09-03 15:50 ` Pascal Obry
2014-09-03 17:28 ` Robert A Duff
2014-09-03 17:36 ` Pascal Obry
2014-09-03 19:09 ` gdotone
2014-09-03 19:19 ` gdotone
2014-09-03 19:29 ` Dmitry A. Kazakov
2014-09-03 20:19 ` Robert A Duff [this message]
2014-09-03 19:19 ` Dmitry A. Kazakov
2014-09-03 20:31 ` Robert A Duff
2014-09-04 7:18 ` Dmitry A. Kazakov
2014-09-04 4:57 ` Brad Moore
2014-09-04 5:32 ` Jeffrey Carter
2014-09-04 7:23 ` Dmitry A. Kazakov
2014-09-04 14:23 ` Brad Moore
2014-09-04 15:36 ` Brad Moore
2014-09-04 18:28 ` Robert A Duff
2014-09-05 4:58 ` anon
2014-09-05 9:45 ` Simon Wright
2014-09-05 21:54 ` anon
2014-09-06 6:28 ` Simon Wright
2014-09-04 15:55 ` G.B.
2014-09-04 16:43 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox