This is the mail archive of the java-patches@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: Advice for storing pointers


>>>>> "Michael" == Michael Koch <konqueror at gmx dot de> writes:

Michael> Currently I think about the storing of pointers (needed for
Michael> the native buffers in java.nio).

Michael> We have two possibilities:
Michael> 1) gnu.gcj.RawData (unfortunately not existing in classpath)
Michael> 2) long

Michael> What is the preferred way to store pointers in java datatypes ?

For libgcj, RawData is preferred.
For Classpath, I don't think there is a standard.  In some cases,
like the AWT peers, the pointers are stored in a lookaside hash table
(which has a number of problems...).

One idea would be to use long and then change that to RawData in
libgcj and mark it appropriately ("// GCJ LOCAL: explanation") so
that we don't merge it by accident.

Tom


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