This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: cni-changes documented?
Tom Tromey writes:
> >>>>> "Hans" == Boehm, Hans <hans.boehm@hp.com> writes:
>
> Hans> (I'm not sure whether the smart pointers to implement
> Hans> null-pointer checks are implemented as C++ source.)
>
> Hans> At least in my experience, a general problem with C++ "smart pointers"
> Hans> is that they only behave 95% like pointers, and it's usually still
> Hans> possible to get premature deallocation if you try, or if you try to
> Hans> manually optimize too aggressively.
>
> I think our plan for smart pointer is just a very thin wrapper around
> the pointer to do null checking:
You're missing the question. This was "will it be possible to use
smart pointers to do precise gc?"
> The hope is that the overhead from this approach will be very small.
I think so. I exepct the only issue will be ABIs that pass single
member structs in a different way from scalars.
Andrew.