This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: C++ and Java CNI: Check Java references
>>>>> "Mark" == Mark Mitchell <mark@codesourcery.com> writes:
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> Yeah, I agree. What sort of performance penalty can we
Tom> expect from that?
> Small now, none later. With the new C++ inliner, the penalties should
> be very slight -- especially on those systems where you have an MMU
> and so don't need to do the check. In the future, the abstraction
> penalty here should be completely eliminated.
Just to be pedantic, it's impossible to eliminate the abstraction penalty
when the ABI is different for passing a pointer v. a smart pointer. But if
you can inline most of the uses it shouldn't be a big deal.
Jason