Skip to content

Stop crashes because we're out of memory by disabling t7880 #1033

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
Jan 17, 2016

Conversation

smarter
Copy link
Member

@smarter smarter commented Jan 17, 2016

All of our recent memory-related tests failures since
#1030 was merged seem to be caused

by t7880.scala. It tries to intentionally trigger an OutOfMemoryError,
however since we don't pass -Xmx to our run tests it's possible that
this we fill up the memory of our host before we reach the maximum heap
size of the JVM.

Ideally, we would specify a -Xmx for run tests (scalac uses 1 GB),
unfortunately in the version of partest we use this is tricky because we
need to set the system property "partest.java_opts". If we upgrade our
partest to the latest release, we can instead specify it by setting the
argument javaOpts of the constructor of SuiteRunner, see
scala/scala-partest@7c4659e

Review by @odersky or @DarkDimius

All of our recent memory-related tests failures since
scala#1030 was merged seem to be caused
by t7880.scala. It tries to intentionally trigger an OutOfMemoryError,
however since we don't pass -Xmx to our run tests it's possible that
this we fill up the memory of our host before we reach the maximum heap
size of the JVM.

Ideally, we would specify a -Xmx for run tests (scalac uses 1 GB),
unfortunately in the version of partest we use this is tricky because we
need to set the system property "partest.java_opts". If we upgrade our
partest to the latest release, we can instead specify it by setting the
argument `javaOpts` of the constructor of `SuiteRunner`, see
scala/scala-partest@7c4659e
@smarter smarter changed the title Disable/t7880 Stop crashes because we're out of memory by disabling t7880 Jan 17, 2016
@odersky
Copy link
Contributor

odersky commented Jan 17, 2016

LGTM. Thanks for investigating!

odersky added a commit that referenced this pull request Jan 17, 2016
Stop crashes because we're out of memory by disabling t7880
@odersky odersky merged commit c2513a6 into scala:master Jan 17, 2016
smarter added a commit to dotty-staging/dotty that referenced this pull request Mar 1, 2016
This should be safe now that run tests do not take so much memory
anymore (cf scala#1033 and  scala#1076).

It would be even better if we could figure out why we're using so much
memory, but that's less important than avoiding spurious test failures.
@allanrenucci allanrenucci deleted the disable/t7880 branch December 14, 2017 16:58
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.

3 participants