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


>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

    Tom> * Is there a performance impact for using references instead
    Tom> of pointers as arguments to methods?  It's hard to believe
    Tom> there would be one, but I don't know for certain.

No.  In fact, some things should theoretically go better: the compiler
knows that references are never NULL.

    Tom> I think this approach does handle the nonvirtual method call
    Tom> problem, because operator-> must still be used to compute
    Tom> `this'.

I didn't understand this problem, I guess.

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