-
Notifications
You must be signed in to change notification settings - Fork 326
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
Set stack size to 16M #11327
Set stack size to 16M #11327
Conversation
@AdRiley you haven't increased the size of stack when launched from |
Are you talking about this .jvmopts file. I guess it is only good for |
Why have you decided to set the stack value to |
There were existing other places in our codebase where we set it to 16M so given I was making up a number I copied those for consistency. I'm happy to change this to something smaller if you think that is better? |
Alternative suggestion to increasing stack size would be that would lower the amount of Java stack elements by ten to twenty per each |
|
I think there was 3. One in the test framework and 2 in my code. |
That's very little. Btw. can you share the stacktrace (Java as well as Enso) somewhere? Maybe we can find other places which might benefit from an optimization ( |
This reverts commit 07d0015.
Pull Request Description
This PR attempts to fix the SQLServer tests which seem to be right on the limit of the default stack size.
Before this change
runEngineDistribution --run C:/Code/enso/test/Microsoft_Tests/src/SQLServer_Spec.enso shown.in.the.doc.example
would stack overflow indeterministically.
If I make this change -Xss512k then that test always stack overflows.
I'm not quite sure why I need to add this change here as .jvmopts looks to already attempts to set the stack size to 16M.
Important Notes
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.