Getting thread-local mem..

Peter Helfer peter.helfer.java at gmail.com
Fri Dec 7 05:45:36 PST 2007


I need some thread-local memory, which is not GC'd, but on death of thread
freed for sure (although I would call free for each alloced elem). I've seen
threadLocalAllocBuffer.hpp<file:///home/sgeorg/workspace/doxygenized/html/db/d09/threadLocalAllocBuffer_8hpp-source.html>which
offers HeapWord* allocate(size_t size) - but where is the
corresponding free(HeapWord* ) ?

Or is there a better alternative - apart from using malloc/free directly ?


Regards, Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20071207/aa1d5241/attachment.html 


More information about the hotspot-runtime-dev mailing list