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 {
4545
4646 /* ------------- Start of public API ------------- */
4747
48- @ experimental
4948 sealed trait LazyValControlState
5049
5150 /**
5251 * Used to indicate the state of a lazy val that is being
5352 * evaluated and of which other threads await the result.
5453 */
55- @ experimental
5654 final class Waiting extends CountDownLatch (1 ) with LazyValControlState
5755
5856 /**
5957 * Used to indicate the state of a lazy val that is currently being
6058 * evaluated with no other thread awaiting its result.
6159 */
62- @ experimental
6360 object Evaluating extends LazyValControlState
6461
65- /**
66- * Used to indicate the state of a lazy val that has been evaluated to
67- * `null`.
68- */
69- @ experimental
7062 object NullValue extends LazyValControlState
7163
7264 final val BITS_PER_LAZY_VAL = 2L
@@ -86,7 +78,6 @@ object LazyVals {
8678 unsafe.compareAndSwapLong(t, offset, e, n)
8779 }
8880
89- @ experimental
9081 def objCAS (t : Object , offset : Long , exp : Object , n : Object ): Boolean = {
9182 if (debug)
9283 println(s " objCAS( $t, $exp, $n) " )
@@ -147,7 +138,6 @@ object LazyVals {
147138 r
148139 }
149140
150- @ experimental
151141 def getStaticFieldOffset (field : java.lang.reflect.Field ): Long = {
152142 @ nowarn
153143 val r = unsafe.staticFieldOffset(field)
You can’t perform that action at this time.
0 commit comments