
1. Use ints rather than longs. 2. Remove some counters that dont seem hugely useful. 3. Replace use of volatile with explicit method calls that cause a memory barrier. This is a lot more efficient than using volatile because it can be invoked only once per doSomeWork.