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?


Bryce McKinlay wrote:
> ...
> I'm thinking of adding something like "RawDataMarked" which would be
> like RawData but would be checked by the GC. This way you could allocate
> a native struct using JvAllocBytes(), and it would be automatically
> freed when the Java object becomes unreachable. No need for a finalizer.

It's like you're reading my mind, man!  <g>

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?
-- 
Paul
http://paulgear.webhop.net
-- 
Think context!  Using accepted quoting conventions makes
your email easier to understand.  Learn how at
<http://www.netmeister.org/news/learn2quote.html>.

Attachment: signature.asc
Description: OpenPGP digital signature


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