@@ -9,14 +9,17 @@ package <empty> {
9
9
}
10
10
@static private def <clinit>(): Unit =
11
11
{
12
- A.OFFSET$_m_0 =
13
- scala.runtime.LazyVals.getOffsetStatic(
14
- classOf[Object {...}].getDeclaredField("x$lzy1"))
12
+ val A$$$methodHandleLookup:
13
+ java.lang.invoke.MethodHandles.MethodHandles$Lookup =
14
+ java.lang.invoke.MethodHandles.lookup()
15
+ A.x$lzy1$$lzyHandle =
16
+ A$$$methodHandleLookup.findVarHandle(classOf[Object {...}], "x$lzy1",
17
+ classOf[Object])
15
18
()
16
19
}
17
- @static @static val OFFSET$_m_0: Long =
18
- scala.runtime.LazyVals.getOffsetStatic(
19
- classOf[Object {...}].getDeclaredField("x$lzy1") )
20
+ @static val x$lzy1$$lzyHandle: java.lang.invoke.VarHandle =
21
+ A.A$$$methodHandleLookup.findVarHandle(classOf[Object {...}], "x$lzy1",
22
+ classOf[Object] )
20
23
private def writeReplace(): Object =
21
24
new scala.runtime.ModuleSerializationProxy(classOf[A])
22
25
@volatile private lazy var x$lzy1: Object = null
@@ -33,7 +36,7 @@ package <empty> {
33
36
val current: Object = A.x$lzy1
34
37
if current eq null then
35
38
if
36
- scala.runtime.LazyVals.objCAS (this, A.OFFSET$_m_0 , null,
39
+ scala.runtime.LazyVals.objCAS2 (this, A.x$lzy1$$lzyHandle , null,
37
40
scala.runtime.LazyVals.Evaluating)
38
41
then
39
42
{
@@ -49,15 +52,15 @@ package <empty> {
49
52
}
50
53
finally
51
54
if
52
- scala.runtime.LazyVals.objCAS (this, A.OFFSET$_m_0 ,
55
+ scala.runtime.LazyVals.objCAS2 (this, A.x$lzy1$$lzyHandle ,
53
56
scala.runtime.LazyVals.Evaluating, result).unary_!()
54
57
then
55
58
{
56
59
val lock: scala.runtime.LazyVals.LazyVals$Waiting =
57
60
A.x$lzy1.asInstanceOf[
58
61
scala.runtime.LazyVals.LazyVals$Waiting]
59
- scala.runtime.LazyVals.objCAS (this, A.OFFSET$_m_0, lock ,
60
- result)
62
+ scala.runtime.LazyVals.objCAS2 (this, A.x$lzy1$$lzyHandle ,
63
+ lock, result)
61
64
lock.countDown()
62
65
}
63
66
else ()
@@ -71,8 +74,8 @@ package <empty> {
71
74
then
72
75
if current eq scala.runtime.LazyVals.Evaluating then
73
76
{
74
- scala.runtime.LazyVals.objCAS (this, A.OFFSET$_m_0, current ,
75
- new scala.runtime.LazyVals.LazyVals$Waiting())
77
+ scala.runtime.LazyVals.objCAS2 (this, A.x$lzy1$$lzyHandle ,
78
+ current, new scala.runtime.LazyVals.LazyVals$Waiting())
76
79
()
77
80
}
78
81
else
0 commit comments