aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--library/src/dotty/runtime/LazyVals.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/dotty/runtime/LazyVals.scala b/library/src/dotty/runtime/LazyVals.scala
index 9a7e153b0..2094cff8e 100644
--- a/library/src/dotty/runtime/LazyVals.scala
+++ b/library/src/dotty/runtime/LazyVals.scala
@@ -55,7 +55,7 @@ object LazyVals {
else if (state == 2) {
val monitor = getMonitor(t, ord)
monitor.synchronized {
- if (STATE(cur, ord) == 2)
+ if (STATE(get(t, offset), ord) == 2) // make sure notification did not happen yet.
monitor.wait()
}
}