We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c165638 commit 5af3d41Copy full SHA for 5af3d41
library/src/dotty/runtime/LazyVals.scala
@@ -26,9 +26,7 @@ object LazyVals {
26
Array.tabulate(base)(_ => new Object)
27
28
private def getMonitor(obj: Object, fieldId: Int = 0) = {
29
- var id = (
30
- /*java.lang.System.identityHashCode(obj) + */ // should be here, but #548
31
- fieldId) % base
+ var id = (java.lang.System.identityHashCode(obj) + fieldId) % base
32
33
if (id < 0) id += base
34
monitors(id)
0 commit comments