Skip to content

Commit 423fe11

Browse files
authored
Fix the fix
Long time since I wrote this code. Forgot that `State` doesn't read the state.
1 parent d799a91 commit 423fe11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/dotty/runtime/LazyVals.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ object LazyVals {
5555
else if (state == 2) {
5656
val monitor = getMonitor(t, ord)
5757
monitor.synchronized {
58-
if (STATE(cur, ord) == 2)
58+
if (STATE(get(t, offset), ord) == 2) // make sure notification did not happen yet.
5959
monitor.wait()
6060
}
6161
}

0 commit comments

Comments
 (0)