This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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


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


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