This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Advice for storing pointers
- From: Tom Tromey <tromey at redhat dot com>
- To: Michael Koch <konqueror at gmx dot de>
- Cc: java-patches at gcc dot gnu dot org
- Date: 19 Mar 2003 14:34:04 -0700
- Subject: Re: Advice for storing pointers
- References: <200303191626.05364.konqueror@gmx.de>
- Reply-to: tromey at redhat dot com
>>>>> "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