From 423fe1142702a93613e625f1deb9c2634cf3567b Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Wed, 19 Apr 2017 11:32:20 -0500 Subject: Fix the fix Long time since I wrote this code. Forgot that `State` doesn't read the state. --- library/src/dotty/runtime/LazyVals.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/src/dotty/runtime/LazyVals.scala') 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() } } -- cgit v1.2.3