Restrictions for lock coarsening?
Clemens Eisserer
linuxhippy at gmail.com
Sat Jan 3 01:56:30 PST 2009
Hi ramki,
> Could you specify what you are doing inside
> doItAndTakeTime()? (i.e. what's the code
> executed in the synchronized block).
Basically only pushing data onto a sun.misc.Unsafe and a little bit of
state-checking (if the buffer still has enough capacity to hold the
next request, as well as if we currently hold the socket):
http://pastebin.com/f4e8a8eec
I accidentially named it _AndTakeTime() in the example, of course I
take the time outside the loop.
Furthermore in the benchmark the socket is always taken and flushing
only re-sets the buffer's position.
Thanks, Clemens
More information about the hotspot-runtime-dev
mailing list