Skip to content

Fix #8425: Avoid race between erasure and explicit outer #8433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 6, 2020

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Mar 4, 2020

No description provided.

@odersky
Copy link
Contributor Author

odersky commented Mar 4, 2020

test performance please

@odersky odersky requested a review from smarter March 4, 2020 15:15
@dottybot
Copy link
Member

dottybot commented Mar 4, 2020

performance test scheduled: 3 job(s) in queue, 1 running.

@dottybot
Copy link
Member

dottybot commented Mar 4, 2020

Performance test finished successfully:

Visit http://dotty-bench.epfl.ch/8433/ to see the changes.

Benchmarks is based on merging with master (0954a07)

odersky added 3 commits March 6, 2020 13:10
RefChecks would invoke ignoreDeferred each time we hit an abstract member in a base class of a
checked class, which means almost all of the time. ignoreDeferred would in turn do time travel
to post-erasure. This causes inefficiencies because of compiler-context switches. It also exposed
the problem in i8425 that was fixed by the last commit.

The concrete failure for i8425 does go away with the change in this commit. However, the fix
in the last commit is still necessary since explicit outer/erasure races are a general problem
that could come back.
@smarter smarter merged commit 5cb511a into scala:master Mar 6, 2020
@smarter smarter deleted the fix-#8425 branch March 6, 2020 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exception while typing def <init>(): Unit of class class dotty.tools.dotc.ast.Trees$DefDef # 1088
3 participants