Skip to content

Commit c8402b8

Browse files
committed
Stabilize experimental runtime functions
1 parent 134c006 commit c8402b8

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

library/src/scala/runtime/LazyVals.scala

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)