This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]