HDFS-5276. Remove volatile from LightWeightHashSet. (Junping Du via llu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1531225 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luke Lu 2013-10-11 08:29:06 +00:00
parent 735d8b27f7
commit d0aaa5ba9f
2 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@ Trunk (Unreleased)
IMPROVEMENTS IMPROVEMENTS
HDFS-5276. Remove volatile from LightWeightHashSet. (Junping Du via llu)
HDFS-4665. Move TestNetworkTopologyWithNodeGroup to common. HDFS-4665. Move TestNetworkTopologyWithNodeGroup to common.
(Junping Du via llu) (Junping Du via llu)

View File

@ -87,7 +87,7 @@ public class LightWeightHashSet<T> implements Collection<T> {
* *
* @see ConcurrentModificationException * @see ConcurrentModificationException
*/ */
protected volatile int modification = 0; protected int modification = 0;
private float maxLoadFactor; private float maxLoadFactor;
private float minLoadFactor; private float minLoadFactor;