diff options
author | Dmitry Petrashko <dark@d-d.me> | 2017-04-19 11:32:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 11:32:20 -0500 |
commit | 423fe1142702a93613e625f1deb9c2634cf3567b (patch) | |
tree | b463f3b0275e7619cd617fe07cd52a77877f5ecc /library/src/dotty | |
parent | d799a9162da02eb6033f5d7af5ea48849cd4232b (diff) | |
download | dotty-423fe1142702a93613e625f1deb9c2634cf3567b.tar.gz dotty-423fe1142702a93613e625f1deb9c2634cf3567b.tar.bz2 dotty-423fe1142702a93613e625f1deb9c2634cf3567b.zip |
Fix the fixDarkDimius-patch-1
Long time since I wrote this code. Forgot that `State` doesn't read the state.
Diffstat (limited to 'library/src/dotty')
-rw-r--r-- | library/src/dotty/runtime/LazyVals.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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() } } |