We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d799a91 commit 423fe11Copy full SHA for 423fe11
library/src/dotty/runtime/LazyVals.scala
@@ -55,7 +55,7 @@ object LazyVals {
55
else if (state == 2) {
56
val monitor = getMonitor(t, ord)
57
monitor.synchronized {
58
- if (STATE(cur, ord) == 2)
+ if (STATE(get(t, offset), ord) == 2) // make sure notification did not happen yet.
59
monitor.wait()
60
}
61
0 commit comments