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: Language extensions ?


>>>>> "Andrew" == Andrew Haley <aph at redhat dot com> writes:

Tom> You can use gnu.gcj.RawData as a system-dependent pointer-sized
Tom> value.  However you can't really do anything with this value
Tom> other than pass it around.  It isn't treated like a real pointer;
Tom> for instance the GC doesn't examine fields of this type.

Andrew> Ouch.  Do we really want to support gnu.gcj.RawData as part of
Andrew> our API?

We already do; it is documented in gcj.texi as part of CNI.
That said, I'm leery of adding magical methods to it to implement
pointer math.  First, there are the security model considerations.
Second, why not just use CNI in this situation?  That's what it is
there for, and it isn't like code using RawData extensions would be
portable Java anyway.

Tom


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