C++ and Java CNI: Check Java references

Jason Merrill jason_merrill@redhat.com
Wed Apr 25 06:52:00 GMT 2001


>>>>> "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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /