-
Notifications
You must be signed in to change notification settings - Fork 63
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
Reduce memory usage of Thread.interrupted() tests #404
Conversation
These test also execute significantly faster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, minor questions below.
private val reallyBigNAry = makeBigExprNode(20000000) | ||
private val bigNAry = makeBigExprNode(10000000) | ||
private val bigPartiqlAst = makeBigPartiqlAstExpr(10000000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the laziness the problem or just a cleanup change?
} | ||
|
||
|
||
class FakeList<T>(override val size: Int, private val item: T) : AbstractList<T>() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment would be helpful but this Fake list is just logically a single item expanded N times, right?
For some reason I still don't fully understand, the tests added in PR #398 to the started consuming more than 4gb of RAM after being cherry-picked to the
v0.1.6
branch, which would cause the build fail since the JVM was limited to 4gb. I tried increasing the RAM allocated to the JVM but wasn't able to get it to run correctly until 6gb and 7gb is the maximum amount of memory allowed by GitHub actions, which I know we will likely migrate to some day soon. That was cutting it pretty close, so I was felt it was better to reduce memory consumption of the tests in that branch and decided to apply a similar fix tomaster
in this PR.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.