Bits.reserveMemory

gustav trede gustav.trede at gmail.com
Fri Aug 21 22:06:21 PDT 2009


Hello,

Is it possible to make the use of Bits.reserveMemory , unreserveMemory
configurable ?.

Usage cases that do not have need for this extra check could benefit from
improved concurrency,
where the gc and allocating threads don't have the risk of fighting around
this static synchronized lock.

A volatile boolean check before entering the lock could do this.

Even low contention usage would benefit from using a cheap read of volatile
boolean compared to a synchronized around multiple memory writes that must
be flushed.


-- 
regards
 gustav trede
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20090822/def23314/attachment.html 


More information about the hotspot-gc-dev mailing list