@@ -96,13 +96,13 @@ object LazyVals {
96
96
println(s " CAS( $t, $offset, $e, $v, $ord) " )
97
97
val mask = ~ (LAZY_VAL_MASK << ord * BITS_PER_LAZY_VAL )
98
98
val n = (e & mask) | (v.toLong << (ord * BITS_PER_LAZY_VAL ))
99
- unsafe.compareAndSwapLong(t, offset, e, n)
99
+ unsafe.compareAndSwapLong(t, offset, e, n): @ nowarn( " cat=deprecation " )
100
100
}
101
101
102
102
def objCAS (t : Object , offset : Long , exp : Object , n : Object ): Boolean = {
103
103
if (debug)
104
104
println(s " objCAS( $t, $exp, $n) " )
105
- unsafe.compareAndSwapObject(t, offset, exp, n)
105
+ unsafe.compareAndSwapObject(t, offset, exp, n): @ nowarn( " cat=deprecation " )
106
106
}
107
107
108
108
def setFlag (t : Object , offset : Long , v : Int , ord : Int ): Unit = {
@@ -147,7 +147,7 @@ object LazyVals {
147
147
def get (t : Object , off : Long ): Long = {
148
148
if (debug)
149
149
println(s " get( $t, $off) " )
150
- unsafe.getLongVolatile(t, off)
150
+ unsafe.getLongVolatile(t, off): @ nowarn( " cat=deprecation " )
151
151
}
152
152
153
153
// kept for backward compatibility
0 commit comments