Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
collections_jdk5_branch
Description
The field Lock.size is updated using synchronization, however the StaticBucketMap.size() method reads the values without synch.
If the read is done in a different thread from the updates, there is no guarantee that the reading thread will see the most recent value.