This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Storing C++ data in an instance field using CNI?
- From: Tom Tromey <tromey at redhat dot com>
- To: Paul Gear <paul at gear dot dyndns dot org>
- Cc: java at gcc dot gnu dot org
- Date: 24 May 2004 11:07:41 -0600
- Subject: Re: Storing C++ data in an instance field using CNI?
- References: <40B1E532.8000805@gear.dyndns.org>
- Reply-to: tromey at redhat dot com
>>>>> "Paul" == Paul Gear <paul@gear.dyndns.org> writes:
Paul> I've searched the archives & Google without finding an answer to this
Paul> question: is it possible using CNI to store C++ data in the object as an
Paul> instance field?
Yes, declare a field of type gnu.gcj.RawData. You can use this as a
pointer to arbitrary data. This field will not be scanned by the GC.
Tom