Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/reference-manual/native-image/BuildOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ The following options are supported across both GraalVM Community and Enterprise
* `--enable-all-security-services`: add all security service classes to a native executable
* `--enable-http`: enable HTTP support in a native executable
* `--enable-https`: enable HTTPS support in a native executable
* `--enable-preview`: allow classes to depend on preview features of this release
* `--enable-url-protocols`: list comma-separated URL protocols to enable
* `--features`: a comma-separated list of fully qualified [Feature implementation classes](https://www.graalvm.org/sdk/javadoc/index.html?org/graalvm/nativeimage/hosted/Feature.html)
* `--force-fallback`: force building of a fallback native executable
Expand Down
2 changes: 1 addition & 1 deletion substratevm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This changelog summarizes major changes to GraalVM Native Image.
* (GR-39497) Add `-H:BuildOutputJSONFile=<file.json>` option for [JSON build output](https://github.com/oracle/graal/edit/master/docs/reference-manual/native-image/BuildOutput.md#machine-readable-build-output). Please feel free to provide feedback so that we can stabilize the schema/API.
* (GR-40170) Add `--silent` option to silence the build output.
* (GR-39475) Add initial support for jvmstat.
* (GR-39563) Add support for JDK 19 and Project Loom Virtual Threads (JEP 425) for high-throughput lightweight concurrency. Enable on JDK 19 with `native-image -J--enable-preview`.
* (GR-39563) Add support for JDK 19 and Project Loom Virtual Threads (JEP 425) for high-throughput lightweight concurrency. Enable on JDK 19 with `native-image --enable-preview`.

## Version 22.2.0
* (GR-20653) Re-enable the usage of all CPU features for JIT compilation on AMD64.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void afterRegistration(AfterRegistrationAccess access) {
* field, and unparking a virtual thread in additionalMonitorsLock.unlock causes a
* deadlock between carrier thread and virtual thread. 17 uses a ReentrantLock.
*/
throw UserError.abort("Continuations are currently supported only on JDK 17 with option %s, or on JDK 19 with preview features enabled (-J--enable-preview).",
throw UserError.abort("Continuations are currently supported only on JDK 17 with option %s, or on JDK 19 with preview features enabled (--enable-preview).",
SubstrateOptionsParser.commandArgument(SubstrateOptions.SupportContinuations, "+"));
}
}
Expand Down
1 change: 1 addition & 0 deletions substratevm/src/com.oracle.svm.driver/resources/Help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ where options include:
-J<flag> pass <flag> directly to the JVM running the image generator
-O<level> 0 - no optimizations, 1 - basic optimizations (default).
--diagnostics-mode enable diagnostics output: class initialization, substitutions, etc.
--enable-preview allow classes to depend on preview features of this release
--verbose enable verbose output
--version print product version and exit
--help print this help message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ public boolean consume(ArgumentQueue args) {
args.poll();
NativeImage.showWarning("Ignoring server-mode native-image argument " + headArg + ".");
return true;
case "--enable-preview":
args.poll();
nativeImage.addCustomJavaArgs("--enable-preview");
return true;
}

String singleArgClasspathPrefix = newStyleClasspathOptionName + "=";
Expand Down