Skip to content

[GR-80731] Support IgnoreUnrecognizedVMOptions and UnlockDiagnosticVMOptions - #14756

Merged
graalvmbot merged 1 commit into
masterfrom
dnsimon/GR-80731
Oct 22, 2026
Merged

graalvmbot merged 1 commit into
masterfrom
dnsimon/GR-80731

Conversation

@graalvmbot

Copy link
Copy Markdown
Collaborator

Support IgnoreUnrecognizedVMOptions and UnlockDiagnosticVMOptions as Native Image runtime options in SubstrateGuestOptions.

The final + or - setting of IgnoreUnrecognizedVMOptions controls unknown options across the complete VM argument list, including options before the flag. For example, -XX:+UnknownOption -XX:+IgnoreUnrecognizedVMOptions is accepted. An incoming JNI JavaVMInitArgs.ignoreUnrecognized=true remains effective even with -XX:-IgnoreUnrecognizedVMOptions; conversely, -XX:+IgnoreUnrecognizedVMOptions enables ignoring when the JNI field is false.

Malformed values of options parsed by Native Image remain errors. Strict mode also continues to reject recognized but unsupported Java VM options. -Xverify is parsed and validated only when StrictRuntimeJavaOptions is enabled.

Both signs of UnlockDiagnosticVMOptions are accepted for HotSpot command-line compatibility. Native Image currently has no diagnostic warnings to unlock.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 22, 2026
@graalvmbot
graalvmbot merged commit a53aaef into master Oct 22, 2026
3 checks passed
@graalvmbot
graalvmbot deleted the dnsimon/GR-80731 branch October 22, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants