We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5709485 commit 2f78dacCopy full SHA for 2f78dac
library/src/dotty/runtime/LazyVals.scala
@@ -67,7 +67,7 @@ object LazyVals {
67
else if (state == 2) {
68
val monitor = getMonitor(t, ord)
69
monitor.synchronized {
70
- if (STATE(cur, ord) == 2)
+ if (STATE(get(t, offset), ord) == 2) // make sure notification did not happen yet.
71
monitor.wait()
72
}
73
0 commit comments