Keeping oops
Peter Helfer
peter.helfer.java at gmail.com
Tue Dec 11 13:29:58 PST 2007
Sorry folks... bad key combo
I'm having a hashtable, which should keep two oops 'grouped' together. This
should keep those oops or handles or whatever accross a Safept / GC. Either:
a) I need to create a HandleMark, somewhere really low in the stack - say in
the constructor of a thread or one of its first functions, and have
something like hashtable<handle, handle>
b) Keep pointers to oops (oop*) allocated, and pass them to the GC when it
comes by, like hashtable<oop*, oop*>::oops_do(OopClosure* f) ? As long as
the oop* still points to that particular oop, it is not moved by GC, right ?
Which one of those is feasible / recommended ?
Regards & sorry again
Peter
2007/12/11, Peter Helfer <peter.helfer.java at gmail.com>:
>
> I'm having a hashtable, which should keep two oops 'grouped' together.
> This
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20071211/b38a4d64/attachment.html
More information about the hotspot-runtime-dev
mailing list