aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dotty/runtime/LazyVals.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/runtime/LazyVals.scala b/src/dotty/runtime/LazyVals.scala
index 2aa45e6fd..38deec6f5 100644
--- a/src/dotty/runtime/LazyVals.scala
+++ b/src/dotty/runtime/LazyVals.scala
@@ -60,7 +60,10 @@ object LazyVals {
}.toArray
@inline def getMonitor(obj: Object, fieldId: Int = 0) = {
- var id = (java.lang.System.identityHashCode(obj) + fieldId) % base
+ var id = (
+ /*java.lang.System.identityHashCode(obj) + */ // should be here, but #548
+ fieldId) % base
+
if (id < 0) id += base
monitors(id)
}