[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Finding objects on C stack - alternate GCPRO
From: |
Helmut Eller |
Subject: |
Re: Finding objects on C stack - alternate GCPRO |
Date: |
Wed, 16 Nov 2011 11:18:16 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (gnu/linux) |
* Dmitry Antipov [2011-11-16 10:07] writes:
> Everyone agrees that GGPROs are ugly and painful. On the other side,
> current C stack marking code introduces substantial overhead by
> maintaining red-black tree. And, since C stack marking is
> conservative, it becomes very tricky to implement GC that may
> relocate live objects (copying or compacting approach).
>
> But there is another method to implement GCPROs. It looks not very
> portable beyond GNU C since it uses __attribute__ ((cleanup (function)))
> and compound statement expressions C extensions. But it doesn't
> require UNGCPRO and dumbs like 'struct gcpro gcpro1, struct gcpro2, ...'.
> And I believe it should work across longjmps.
And we could use C++ with destructors.
Helmut
- Finding objects on C stack - alternate GCPRO, Dmitry Antipov, 2011/11/16
- Re: Finding objects on C stack - alternate GCPRO,
Helmut Eller <=
- Re: Finding objects on C stack - alternate GCPRO, Eli Zaretskii, 2011/11/16
- Re: Finding objects on C stack - alternate GCPRO, Stefan Monnier, 2011/11/16
- Re: Finding objects on C stack - alternate GCPRO, Tom Tromey, 2011/11/16
- Re: Finding objects on C stack - alternate GCPRO, Ken Raeburn, 2011/11/16