Skip to content
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

Make Interpreter Heap and Stack Size Configurable #285

Merged
merged 3 commits into from
Aug 24, 2023

Conversation

mahills
Copy link
Member

@mahills mahills commented Aug 24, 2023

This adds the option to set the maximum heap size and the stack size as VSCode settings. The setting can be added as either a User or Workspace setting. The inputs need to be numeric, but there is no checking to ensure they are sensible right now beyond that (someone could, in theory, enter -5 or 8.1).

Screenshot 2023-08-23 at 9 10 55 PM

Add two configuration settings that adjust the default amount
of heap and per-thread stack space for the JVM created to run
a Rascal interpreter. Both settings can be either null or
numeric. Numeric settings are interpreted as number of MB. The
settings correspond to the -Xmx (for heap) and -Xss (for stack)
flags passed to the JVM.
…ell.

This update modifies the code that computes the maximum heap size to
take into account the heap size configuration setting, if set. This
also adds new code to compute a maximum stack size, which will use
the stack size configuration setting when present or the JVM default
when absent.
Updated the names of the configuration parameters and their descriptions
to better convey what they are used for. Also updated the code that
refers to the parameter names.
@mahills
Copy link
Member Author

mahills commented Aug 24, 2023

@DavyLandman and @jurgenvinju tagging you to review and merge if ready.

Copy link
Member

@jurgenvinju jurgenvinju left a comment

Choose a reason for hiding this comment

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

this is very very handy. nice!

rascal-vscode-extension/package.json Show resolved Hide resolved
rascal-vscode-extension/package.json Show resolved Hide resolved
@jurgenvinju jurgenvinju merged commit 2e584c4 into usethesource:main Aug 24, 2023
2 of 3 checks passed
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.

None yet

2 participants