[Gc] Weak pointers - strong enough for real-world use?
Hans.Boehm at hp.com
Sat Jan 28 11:13:41 PST 2006
gcc_support.c was really added in an aborted attempt to implement
something like the Ellis-Detlefs Safe C++ proposal. Its weak
pointer support is built on the "disappearing_link" support, which
is listed in gc.h and always included.
The "disappearing_link" support will stay. If you need the higher
level layer from gcc_support.c, I would recommend cloning what you
need as part of your code.
If there is a strong feeling that pieces of gcc_support.c should stay
in the collector, that can certainly be discussed. My feeling is that
it was mostly an accident that it was still in 6.6.
On Sat, 28 Jan 2006, David Jones wrote:
> I was looking at the weak pointer support in the GC.
> In the 6.x series, the code for it appears in gcc_support.c, along with a
> bunch of other GCC-specific stuff. In the 7.x series, the code is not
> present at all, although weakpointer.h is present.
> Was this intended solely to support Java's weak pointers in GCJ, or is it
> actually usable in a C++ application? What can I infer from the absence of
> the implementation code in the 7.x series?
> I was considering using weak pointers in a production application, but if this
> functionality is not generally regarded as fit for production, then I need to
> Gc mailing list
> Gc at linux.hpl.hp.com
More information about the Gc