[infinispan-dev] OwnableReentrantLock.currentRequestor

Mircea Markus mircea.markus at jboss.com
Wed May 13 01:11:00 EDT 2009


Hi,

this method obtains the lock requestor  associated with the current 
thread,  which  ultimately performs an ThreadLocal.get(key).
Can't we pass the lock owner to the lock before acquiring locks to avoid 
this lookup map lookup? This would mean some code changes, but  I think  
we'll  gain some performance.

Cheers,
Mircea



More information about the infinispan-dev mailing list