Skip to content

Commit 2f78dac

Browse files
DarkDimiusnicolasstucki
authored andcommitted
Fix the fix
Long time since I wrote this code. Forgot that `State` doesn't read the state.
1 parent 5709485 commit 2f78dac

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
@@ -67,7 +67,7 @@ object LazyVals {
6767
else if (state == 2) {
6868
val monitor = getMonitor(t, ord)
6969
monitor.synchronized {
70-
if (STATE(cur, ord) == 2)
70+
if (STATE(get(t, offset), ord) == 2) // make sure notification did not happen yet.
7171
monitor.wait()
7272
}
7373
}

0 commit comments

Comments
 (0)