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: Storing C++ data in an instance field using CNI?


Paul Gear writes:
 > Bryce McKinlay wrote:
 > > ...
 > >> That's exactly what i'm looking for.  I want my native structure to be
 > >> checked and freed by the GC.  I think i might just declare it as an
 > >> Object for now - should that do the trick?
 > > 
 > > Yup, it will work. But, be warned that using Object to store native
 > > pointers is not offically supported and could break in the future.
 > 
 > Is there a better way to get some memory from the GC that will be
 > collected when my object disappears?

A byte array.

Andrew.


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