Skip to content

Avoid creating cyclic types when reporting errors in selectionType #12223

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 2 commits into from
May 3, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 26, 2021

The previous code was a great demonstration of the perils of mixing mutable variables with
delayed evaluation.

Also, make lazy vals in Message @ThreadUnsafe. This means that any recursion (like the one we
encountered before the fix) manifests itself in stackoverflows instead of deadlocks.

Fixes #12220

odersky added 2 commits April 26, 2021 11:18
The previous code was a great demonstration of the perils of mixing mutable variables with
delayed evaluation.

Also, make lazy vals in Message @ThreadUnsafe. This means that any recursion (like the one we
encountered before the fix) manifests itself in stackoverflows instead of deadlocks.

Fixes scala#12220
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bishabosha bishabosha merged commit 351cb25 into scala:master May 3, 2021
@bishabosha bishabosha deleted the fix-12220 branch May 3, 2021 12:36
@Kordyjan Kordyjan added this to the 3.0.1 milestone Aug 2, 2023
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.

Compiler hangs on invalid type cast in for comprehension
3 participants