Skip to content

Fix #4951: Increase stack size before bootstrap to reduce tests flakyness #4992

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
Aug 24, 2018

Conversation

Blaisorblade
Copy link
Contributor

To test, use testCompilation inductive-implicits-bench before and after,
locally. I get a failure before and a pass after.

We consume more stack before bootstrap because many typer methods are only tail-recursive if track or such are inlined (via @forceInline), and we don't plan to fix that. Viceversa, if this test stack overflows after bootstrap, we probably want to take a look.

@@ -718,6 +718,9 @@ object Build {
TestFrameworks.JUnit,
"--exclude-categories=dotty.BootstrappedOnlyTests",
),
// increase stack size for non-bootstrapped compiler, because some code
// is only tail-recursive after bootstrap
javaOptions += "-Xss2m"
Copy link
Contributor

Choose a reason for hiding this comment

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

javaOptions in Test?

@Blaisorblade Blaisorblade self-assigned this Aug 23, 2018
To test, use `testCompilation inductive-implicits-bench` before and after,
locally.
@Blaisorblade Blaisorblade removed their assignment Aug 23, 2018
@Blaisorblade
Copy link
Contributor Author

Comments addressed (and tested), mergeable when CI passes.

@Blaisorblade Blaisorblade self-assigned this Aug 23, 2018
@Blaisorblade Blaisorblade merged commit 67e2b6a into scala:master Aug 24, 2018
@Blaisorblade Blaisorblade deleted the more-stack branch August 24, 2018 17:16
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.

2 participants