Skip to content

Commit 7baaeae

Browse files
author
Ray Jenkins
committed
Merge pull request #5 from pkwarren/static_field_updater
Create static AtomicReferenceFieldUpdater.
2 parents 0141069 + a21a81a commit 7baaeae

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/org/cliffc/high_scale_lib/NonBlockingHashMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ private static final class CHM<TypeK,TypeV> {
734734
// to get the required memory orderings. It monotonically transits from
735735
// null to set (once).
736736
volatile Object[] _newkvs;
737-
private final AtomicReferenceFieldUpdater<CHM,Object[]> _newkvsUpdater =
737+
private static final AtomicReferenceFieldUpdater<CHM,Object[]> _newkvsUpdater =
738738
AtomicReferenceFieldUpdater.newUpdater(CHM.class,Object[].class, "_newkvs");
739739
// Set the _next field if we can.
740740
boolean CAS_newkvs( Object[] newkvs ) {

src/main/java/org/cliffc/high_scale_lib/NonBlockingHashtable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* http://creativecommons.org/licenses/publicdomain
44
*/
55

6-
/* WARNING: MACHINE GENERATED FILE! DO NOT EDIT!*/
6+
/* WARNING: MACHINE GENERATED FILE! DO NOT EDIT!*/
77
package org.cliffc.high_scale_lib;
88
import java.io.IOException;
99
import java.io.Serializable;
@@ -727,7 +727,7 @@ private static final class CHM<TypeK,TypeV> {
727727
// to get the required memory orderings. It monotonically transits from
728728
// null to set (once).
729729
volatile Object[] _newkvs;
730-
private final AtomicReferenceFieldUpdater<CHM,Object[]> _newkvsUpdater =
730+
private static final AtomicReferenceFieldUpdater<CHM,Object[]> _newkvsUpdater =
731731
AtomicReferenceFieldUpdater.newUpdater(CHM.class,Object[].class, "_newkvs");
732732
// Set the _next field if we can.
733733
boolean CAS_newkvs( Object[] newkvs ) {

src/main/java/org/cliffc/high_scale_lib/NonBlockingIdentityHashMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ private static final class CHM<TypeK,TypeV> {
701701
// to get the required memory orderings. It monotonically transits from
702702
// null to set (once).
703703
volatile Object[] _newkvs;
704-
private final AtomicReferenceFieldUpdater<CHM,Object[]> _newkvsUpdater =
704+
private static final AtomicReferenceFieldUpdater<CHM,Object[]> _newkvsUpdater =
705705
AtomicReferenceFieldUpdater.newUpdater(CHM.class,Object[].class, "_newkvs");
706706
// Set the _next field if we can.
707707
boolean CAS_newkvs( Object[] newkvs ) {

0 commit comments

Comments
 (0)