Skip to content

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