bluegitter / xmemcached

Automatically exported from code.google.com/p/xmemcached
0 stars 0 forks source link

Use AtomicInteger in OpaqueGenerater instead of synchronized method #282

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OpaqueGenerater uses public synchronized int getNextValue method to get next 
value of the counter. In high contention environment it leads to locks. Counter 
may be replaced with AtomicInteger and method can be made not synchronized.

Expected output: no locks in OpaqueGenerater.

Original issue reported on code.google.com by a.v.safo...@gmail.com on 7 Feb 2014 at 9:17

GoogleCodeExporter commented 9 years ago
Yep,it's a choice, i will fixed it.

Original comment by xzhu...@avos.com on 8 Feb 2014 at 5:56

GoogleCodeExporter commented 9 years ago
v2.0.0 is released and fix this issue.

Original comment by killme2...@gmail.com on 28 Apr 2014 at 8:11