Description
The Queue.resetNeeded field should be volatile due to the fact that it is exposed outside of any additional synchronization (via the Queue.isResetNeeded() method). without the volatile modifier, the flag could be set but not recognized by any external code checking it.