File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
library/src/scala/runtime Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -45,28 +45,20 @@ object LazyVals {
45
45
46
46
/* ------------- Start of public API ------------- */
47
47
48
- @ experimental
49
48
sealed trait LazyValControlState
50
49
51
50
/**
52
51
* Used to indicate the state of a lazy val that is being
53
52
* evaluated and of which other threads await the result.
54
53
*/
55
- @ experimental
56
54
final class Waiting extends CountDownLatch (1 ) with LazyValControlState
57
55
58
56
/**
59
57
* Used to indicate the state of a lazy val that is currently being
60
58
* evaluated with no other thread awaiting its result.
61
59
*/
62
- @ experimental
63
60
object Evaluating extends LazyValControlState
64
61
65
- /**
66
- * Used to indicate the state of a lazy val that has been evaluated to
67
- * `null`.
68
- */
69
- @ experimental
70
62
object NullValue extends LazyValControlState
71
63
72
64
final val BITS_PER_LAZY_VAL = 2L
@@ -86,7 +78,6 @@ object LazyVals {
86
78
unsafe.compareAndSwapLong(t, offset, e, n)
87
79
}
88
80
89
- @ experimental
90
81
def objCAS (t : Object , offset : Long , exp : Object , n : Object ): Boolean = {
91
82
if (debug)
92
83
println(s " objCAS( $t, $exp, $n) " )
@@ -147,7 +138,6 @@ object LazyVals {
147
138
r
148
139
}
149
140
150
- @ experimental
151
141
def getStaticFieldOffset (field : java.lang.reflect.Field ): Long = {
152
142
@ nowarn
153
143
val r = unsafe.staticFieldOffset(field)
You can’t perform that action at this time.
0 commit comments