Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Default java opts assumes a minimum Java version #144

Open
nafg opened this issue Jun 4, 2023 · 1 comment
Open

Default java opts assumes a minimum Java version #144

nafg opened this issue Jun 4, 2023 · 1 comment

Comments

@nafg
Copy link

nafg commented Jun 4, 2023

I'm referring to

"-XX:+UseZGC", // ZGC returns unused memory back to the OS, so Bloop does not occupy so much memory if unused

For instance, on Java 11 it will fail with:

Error: VM option 'UseZGC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: The unlock option must precede 'UseZGC'.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I didn't try on earlier JDKs but it will probably fail altogether.

@oyvindberg
Copy link

Note that JVMs older than 17 (IIRC) are not supported by this bloop

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants