We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b75b771 commit 931520aCopy full SHA for 931520a
library/src/scala/runtime/LazyVals.scala
@@ -96,13 +96,13 @@ object LazyVals {
96
println(s"CAS($t, $offset, $e, $v, $ord)")
97
val mask = ~(LAZY_VAL_MASK << ord * BITS_PER_LAZY_VAL)
98
val n = (e & mask) | (v.toLong << (ord * BITS_PER_LAZY_VAL))
99
- unsafe.compareAndSwapLong(t, offset, e, n)
+ unsafe.compareAndSwapLong(t, offset, e, n): @nowarn
100
}
101
102
def objCAS(t: Object, offset: Long, exp: Object, n: Object): Boolean = {
103
if (debug)
104
println(s"objCAS($t, $exp, $n)")
105
- unsafe.compareAndSwapObject(t, offset, exp, n)
+ unsafe.compareAndSwapObject(t, offset, exp, n): @nowarn
106
107
108
def setFlag(t: Object, offset: Long, v: Int, ord: Int): Unit = {
@@ -147,7 +147,7 @@ object LazyVals {
147
def get(t: Object, off: Long): Long = {
148
149
println(s"get($t, $off)")
150
- unsafe.getLongVolatile(t, off)
+ unsafe.getLongVolatile(t, off): @nowarn
151
152
153
// kept for backward compatibility
0 commit comments