emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding objects on C stack - alternate GCPRO


From: Tom Tromey
Subject: Re: Finding objects on C stack - alternate GCPRO
Date: Wed, 16 Nov 2011 11:19:32 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

>>>>> "Dmitry" == Dmitry Antipov <address@hidden> writes:

Dmitry> Everyone agrees that GGPROs are ugly and painful.
[...]
Dmitry> But there is another method to implement GCPROs.

If you really want GCPROs, you could write a GCC plugin to verify that
they are in all the right places.  This would work for all the code that
isn't platform-specific anyway.  Writing a GCC plugin to do custom
checks like this is pretty easy nowadays, you could do it in less than a
day.

I tend to think that GCPRO is worse than conservative marking.  What
advantage does GCPRO have?

Tom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]