summaryrefslogtreecommitdiff
path: root/test/files/run/t6028.check
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2016-08-22 11:43:49 -0700
committerAdriaan Moors <adriaan@lightbend.com>2016-08-29 09:54:09 +0200
commitd9974be376e23f2a41373cd85977732aee6761a1 (patch)
tree9710c040412319d5217408bbef35ec797a6b3ceb /test/files/run/t6028.check
parent6f7bd990ae69d6796c68894133c1975bef354e12 (diff)
downloadscala-d9974be376e23f2a41373cd85977732aee6761a1.tar.gz
scala-d9974be376e23f2a41373cd85977732aee6761a1.tar.bz2
scala-d9974be376e23f2a41373cd85977732aee6761a1.zip
Double-checked locking for modules.
Inline `mkSynchronizedCheck`, whose abstraction obscured rather than clarified.
Diffstat (limited to 'test/files/run/t6028.check')
-rw-r--r--test/files/run/t6028.check14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/files/run/t6028.check b/test/files/run/t6028.check
index c2e3ca58d8..f757bc93ff 100644
--- a/test/files/run/t6028.check
+++ b/test/files/run/t6028.check
@@ -55,11 +55,15 @@ package <empty> {
<synthetic> <stable> <artifact> def $outer(): T = MethodLocalObject$2.this.$outer
};
final <stable> private[this] def MethodLocalObject$1(barParam$1: Int, MethodLocalObject$module$1: runtime.VolatileObjectRef): T#MethodLocalObject$2.type = {
- T.this.synchronized({
- if (MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]().eq(null))
- MethodLocalObject$module$1.elem = new T#MethodLocalObject$2.type(T.this, barParam$1);
- scala.runtime.BoxedUnit.UNIT
- });
+ if (MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]().eq(null))
+ {
+ T.this.synchronized({
+ if (MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]().eq(null))
+ MethodLocalObject$module$1.elem = new T#MethodLocalObject$2.type(T.this, barParam$1);
+ scala.runtime.BoxedUnit.UNIT
+ });
+ ()
+ };
MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]()
};
@SerialVersionUID(value = 0) final <synthetic> class $anonfun$tryy$1 extends scala.runtime.AbstractFunction0$mcV$sp with Serializable {