Skip to content

Commit 4888754

Browse files
committed
Update versions where necessary
1 parent a49da0c commit 4888754

File tree

21 files changed

+58
-58
lines changed

21 files changed

+58
-58
lines changed

.github/workflows/native-image-jmh-binary-tree.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
timeout-minutes: 45
2121
strategy:
2222
matrix:
23-
java-version: ['25', '26-ea']
23+
java-version: ['21']
2424
steps:
2525
- uses: actions/checkout@v4
2626
- uses: graalvm/setup-graalvm@v1

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018, 2024 Oracle and/or its affiliates.
1+
Copyright (c) 2018, 2025 Oracle and/or its affiliates.
22

33
The Universal Permissive License (UPL), Version 1.0
44

compiler/java-stream-benchmark/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This demo contains the code for a simple Java Stream benchmark designed to run o
55

66
1. Download and install the GraalVM JDK using [SDKMAN!](https://sdkman.io/). For other installation options, visit the [Downloads page](https://www.graalvm.org/downloads/).
77
```bash
8-
sdk install java 23.0.1-graal
8+
sdk install java 25-graal
99
```
1010

1111
2. Download or clone the repository and navigate into the benchmark directory:
@@ -50,14 +50,14 @@ Read more in [this blog post](https://blogs.oracle.com/java/post/including-the-g
5050

5151
1. Switch the JVM from GraalVM (Oracle GraalVM or Community Edition) to Oracle JDK 23 or higher. You can quickly do that with using [SDKMAN!](https://sdkman.io/):
5252
```bash
53-
sdk install java 23.0.1-oracle
53+
sdk install java 25-oracle
5454
```
5555

5656
2. Run this benchmark with the Graal JIT compiler enabled. For that, pass the `-XX:+UseGraalJIT` option to `java`:
5757
```bash
5858
java -XX:+UnlockExperimentalVMOptions -XX:+UseGraalJIT -jar target/benchmarks.jar
5959
```
6060

61-
> To switch between JVMs in the same terminal window (without affecting the global setting), use the `sdk` tool. For example, to switch back to Oracle GraalVM for JDK 23, run: `sdk use java 23.0.1-graal`.
61+
> To switch between JVMs in the same terminal window (without affecting the global setting), use the `sdk` tool. For example, to switch back to Oracle GraalVM for JDK 25, run: `sdk use java 25-graal`.
6262

6363
Learn more about the Graal JIT compiler from [its official documentation](https://www.graalvm.org/reference-manual/java/compiler/).

compiler/java-stream-benchmark/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ questions.
4141
<properties>
4242
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4343
<jmh.version>1.37</jmh.version>
44-
<javac.target>1.8</javac.target>
44+
<javac.target>21</javac.target>
4545
<uberjar.name>benchmarks</uberjar.name>
4646
</properties>
4747

native-image/benchmark/jmh/binary-tree/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Binary Tree Benchmark
1+
# Binary Tree Benchmark
22

33
This demo shows how to run a Java Microbenchmark Harness (JMH) benchmark as a native executable.
44

@@ -20,7 +20,7 @@ This forking process is not possible with GraalVM Native Image and you should co
2020

2121
1. Download and install the GraalVM JDK using [SDKMAN!](https://sdkman.io/). For other installation options, visit the [Downloads page](https://www.graalvm.org/downloads/).
2222
```bash
23-
sdk install java 21.0.5-graal
23+
sdk install java 21.0.8-graal
2424
```
2525

2626
2. Download or clone the repository and navigate into the _/native-image/benchmark/jmh/binary-tree_ directory:
@@ -38,7 +38,7 @@ To build and run the benchmark on HotSpot, run the following Maven command:
3838
./mvnw clean package exec:exec
3939
```
4040

41-
Note that within the _pom.xml_ file there are instructions to explicitly turn off the Graal JIT compiler using the option `-XX:-UseJVMCICompiler`.
41+
Note that within the _pom.xml_ file there are instructions to explicitly turn off the Graal JIT compiler using the option `-XX:-UseJVMCICompiler`.
4242
This means that benchmark will run using the C2 JIT compiler.
4343

4444
The application runs the benchmark and displays the results to the terminal.
@@ -58,7 +58,7 @@ This demo uses Oracle GraalVM Native Image, however, if you are using GraalVM Co
5858
```shell
5959
./mvnw package -Pnative
6060
```
61-
2. Run the benchmark from a native executable:
61+
2. Run the benchmark from a native executable:
6262
```shell
6363
./target/benchmark-binary-tree
6464
```
@@ -70,12 +70,12 @@ This demo uses Oracle GraalVM Native Image, however, if you are using GraalVM Co
7070

7171
## Optimize the Benchmark for Throughput
7272

73-
You can improve the performance of this benchmark by applying [Profile-Guided Optimization (PGO)](https://www.graalvm.org/reference-manual/native-image/optimizations-and-performance/PGO/).
73+
You can improve the performance of this benchmark by applying [Profile-Guided Optimization (PGO)](https://www.graalvm.org/reference-manual/native-image/optimizations-and-performance/PGO/).
7474

7575
> PGO is available with Oracle GraalVM Native Image.
7676

7777
First, you will need to build an instrumented version of this native benchmark that contains extra code to trace the execution of the program and to profile it.
78-
Therefore, it will run slower than the previous version.
78+
Therefore, it will run slower than the previous version.
7979
After execution finishes, a profile file, _default.iprof_, is generated in the root directory.
8080
This file contains profiling information about the application and will be used to build a more efficient native executable.
8181

native-image/benchmark/jmh/binary-tree/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<!-- Name of the benchmark Uber-JAR to generate -->
1919
<uberjar.name>benchmarks-binary-tree</uberjar.name>
2020
<!-- Version of the GraalVM Build tools to use -->
21-
<native-buildtools.version>0.10.6</native-buildtools.version>
21+
<native-buildtools.version>0.11.0</native-buildtools.version>
2222
<!-- Name of the output binary -->
2323
<binary-name>benchmark-binary-tree</binary-name>
2424
<!-- Main class -->

native-image/build-with-js-embedded/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<maven.compiler.source>21</maven.compiler.source>
1414
<maven.compiler.target>21</maven.compiler.target>
15-
<graalvm.polyglot.version>24.1.1</graalvm.polyglot.version>
16-
<native.maven.plugin.version>0.10.6</native.maven.plugin.version>
15+
<graalvm.polyglot.version>25.0.0</graalvm.polyglot.version>
16+
<native.maven.plugin.version>0.11.0</native.maven.plugin.version>
1717
</properties>
1818

1919
<dependencies>

native-image/clouds/native-aws-fargate/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<parent>
1111
<groupId>io.micronaut</groupId>
1212
<artifactId>micronaut-parent</artifactId>
13-
<version>3.9.1</version>
13+
<version>4.9.2</version>
1414
</parent>
1515

1616
<properties>
1717
<packaging>jar</packaging>
18-
<jdk.version>17</jdk.version>
19-
<release.version>17</release.version>
20-
<micronaut.version>3.9.1</micronaut.version>
18+
<jdk.version>21</jdk.version>
19+
<release.version>21</release.version>
20+
<micronaut.version>4.9.2</micronaut.version>
2121
<micronaut.runtime>netty</micronaut.runtime>
2222
<exec.mainClass>example.micronaut.Application</exec.mainClass>
2323
</properties>
@@ -78,7 +78,7 @@
7878
<groupId>io.micronaut.build</groupId>
7979
<artifactId>micronaut-maven-plugin</artifactId>
8080
</plugin>
81-
81+
8282
<plugin>
8383
<groupId>org.apache.maven.plugins</groupId>
8484
<artifactId>maven-compiler-plugin</artifactId>

native-image/clouds/native-aws-lambda/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
GraalVM on AWS Lambda Demo
22
====================
3-
This demo will walk you through the processes for deploying both Java 17 and Native Image applications onto the AWS Lambda platform. In this demo, you will deploy a simple "Hello World" HTTP application and have the ability to compare how the versions of the application compare based on speed and size.
3+
This demo will walk you through the processes for deploying both Java 21 and Native Image applications onto the AWS Lambda platform. In this demo, you will deploy a simple "Hello World" HTTP application and have the ability to compare how the versions of the application compare based on speed and size.
44

55
Prerequisites
66
----------------------
@@ -40,7 +40,7 @@ public class HomeController {
4040

4141
This code implements the actual RESTful "Hello World" functionality and is the code that snippet which is executed when a request is made to Lambda function. It produces the "Hello World" string when a GET request is made to the function's URL.
4242

43-
Deploying as a Java 17 Application (.jar)
43+
Deploying as a Java 21 Application (.jar)
4444
----------------------
4545
1. Navigate to the directory for this demo:
4646
```sh
@@ -55,7 +55,7 @@ cd graalvm-demos/native-aws-lambda
5555

5656
![AWS dashboard](img/Create%20function.png)
5757

58-
5. Select “Author from scratch”, choose a name for your function, select “Java 17” as the runtime, and select “x86_64” as the architecture, then click the "Create function" button
58+
5. Select “Author from scratch”, choose a name for your function, select “Java 21 as the runtime, and select “x86_64” as the architecture, then click the "Create function" button
5959

6060
![Create function](img/myFunction.png)
6161

native-image/clouds/native-aws-lambda/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<parent>
1111
<groupId>io.micronaut</groupId>
1212
<artifactId>micronaut-parent</artifactId>
13-
<version>3.9.1</version>
13+
<version>4.9.2</version>
1414
</parent>
1515

1616
<properties>
1717
<packaging>jar</packaging>
18-
<jdk.version>17</jdk.version>
19-
<release.version>17</release.version>
20-
<micronaut.version>3.9.1</micronaut.version>
18+
<jdk.version>21</jdk.version>
19+
<release.version>21</release.version>
20+
<micronaut.version>4.9.2</micronaut.version>
2121
<exec.mainClass>io.micronaut.function.aws.runtime.MicronautLambdaRuntime</exec.mainClass>
2222
<micronaut.runtime>lambda</micronaut.runtime>
2323
</properties>
@@ -88,7 +88,7 @@
8888
<groupId>io.micronaut.build</groupId>
8989
<artifactId>micronaut-maven-plugin</artifactId>
9090
</plugin>
91-
91+
9292
<plugin>
9393
<groupId>org.apache.maven.plugins</groupId>
9494
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)