# | Line 394 | Line 394 | public class ConcurrentSkipListMap<K,V> | |
---|---|---|
394 | boolean casValue(Object cmp, Object val) { | |
395 | return UNSAFE.compareAndSwapObject(this, valueOffset, cmp, val); | |
396 | } | |
397 | < | |
397 | > | |
398 | /** | |
399 | * compareAndSet next field | |
400 | */ | |
# | Line 3110 | Line 3110 | public class ConcurrentSkipListMap<K,V> | |
3110 | private static final sun.misc.Unsafe UNSAFE = sun.misc.Unsafe.getUnsafe(); | |
3111 | private static final long headOffset = | |
3112 | objectFieldOffset(UNSAFE, "head", ConcurrentSkipListMap.class); | |
3113 | < | |
3113 | > | |
3114 | static long objectFieldOffset(sun.misc.Unsafe UNSAFE, | |
3115 | String field, Class<?> klazz) { | |
3116 | try { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |