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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1531224 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luke Lu 2013-10-11 08:27:32 +00:00
parent 6071dcb575
commit 7d83886767
2 changed files with 4 additions and 2 deletions

View File

@ -14,6 +14,8 @@ Release 2.3.0 - UNRELEASED
IMPROVEMENTS
HDFS-5276. Remove volatile from LightWeightHashSet. (Junping Du via llu)
HDFS-4657. Limit the number of blocks logged by the NN after a block
report to a configurable value. (Aaron T. Myers via Colin Patrick
McCabe)

View File

@ -88,7 +88,7 @@ public class LightWeightHashSet<T> implements Collection<T> {
*
* @see ConcurrentModificationException
*/
protected volatile int modification = 0;
protected int modification = 0;
private float maxLoadFactor;
private float minLoadFactor;
@ -634,4 +634,4 @@ public class LightWeightHashSet<T> implements Collection<T> {
public boolean retainAll(Collection<?> c) {
throw new UnsupportedOperationException("retainAll is not supported.");
}
}
}