Skip to content

Avoid exponential retries on inlining overflow #12139

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 1 commit into from
Apr 20, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 18, 2021

In some situations Typer tries several alternatives around an inlined call. If overflow is detected
at depth 32 then this could cause 2^32 different retries which leads to OOM.

Prevent this with a switch that stops further inline calls as long as an overflowing call stack
is not completely unwound.

Fixes #12116

In some situations Typer tries several alternatives around an inlined call. If overflow is detected
at depth 32 then this could cause 2^32 different retries which leads to OOM.

Prevent this with a switch that stops further inline calls as long as an overflowing call stack
is not completely unwound.

Fixes scala#12116
@nicolasstucki nicolasstucki merged commit c3c7cd3 into scala:master Apr 20, 2021
@nicolasstucki nicolasstucki deleted the fix-12116 branch April 20, 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.

OutOfMemoryError when missing inline modifier
3 participants