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]
Other format: [Raw text]

Re: libjava status on Solaris 8/Intel and IRIX 6.5


>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:

Adam> What's the advantage to using template-references instead of
Adam> pointers?  Non-conservative GC, perhaps? What else?

Andrew> Inline reference checks, mostly.

Adam> Can't the gcc equivalent of the JVM's 'CheckClassCast' be inlined?

Andrew is really referring to null pointer checks here, not cast
checking.  The problem is if you write CNI code on MMU-less platforms,
then you have to insert manual null pointer checks in your code.  This
is hard to maintain.  So one idea is to use ref<> instead and then let
the wrapper template do the checking on such platforms.

Whether this will happen depends heavily on demand.  For instance, I'm
very unlikely to do anything about it unless Red Hat gets a contract
for it.  I simply don't use such systems in my "normal" life.

Tom


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