C++ and Java CNI: Check Java references
Mark Mitchell
mark@codesourcery.com
Wed Apr 25 10:13:00 GMT 2001
>>>>> "Jason" == Jason Merrill <jason_merrill@redhat.com> writes:
Jason> Just to be pedantic, it's impossible to eliminate the
Jason> abstraction penalty when the ABI is different for passing a
Jason> pointer v. a smart pointer. But if you can inline most of
Jason> the uses it shouldn't be a big deal.
Absolutely correct.
I would expect that in most cases Java smart pointers wouldn't have to
be passed across function boundaries: unlike auto_ptr there's no need
to do anything when things are copied, or anything.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Java
mailing list