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

Support new GraalVM for JDK17/JDK20 release. #46

Merged
merged 6 commits into from
Jun 16, 2023
Merged

Conversation

fniephaus
Copy link
Member

This PR adds support for the new GraalVM for JDK17/JDK20 release, including the new Oracle GraalVM distribution.
For this, users only need to specify the 'java-version' option and the new 'distribution' option.
The 'version' option is now marked as optional and kept for compatibility with older GraalVM releases and Mandrel.

Closes #45

This commit adds support for the new GraalVM for JDK17/JDK20 release, including the new Oracle GraalVM distribution.
For this, users only need to specify the 'java-version' option and the new 'distribution' option.
The 'version' option is now marked as optional and kept for compatibility with older GraalVM releases and Mandrel.
@fniephaus fniephaus self-assigned this Jun 16, 2023
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 16, 2023
@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-musl' job in run #207.

Environment

GraalVM version GraalVM CE 20.0.1-dev+9.1 C compiler x86_64-linux-musl-gcc (linux, x86_64, 10.2.1)
Java version 20.0.1+9 Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 3156 72.452% 3794 50.238% 15157 45.482%
Reflection 953 21.878% 81 1.073% 476 1.428%
JNI 57 1.309% 55 0.728% 52 0.156%
Loaded 4356 100.000% 7552 100.000% 33325 100.000%

Image Details

Category Size in % Details
Code area 5.28MB 39.393% 8614 compilation units
Image heap 7.77MB 58.000% 154.26KB for 5 resources
Other data 357.66KB 2.607%
Total 13.40MB 100.000%

Resource Usage

Garbage collection 5.56s in 73 GCs
Peak RSS 1.22GB (17.989% of 6.78GB system memory)
CPU load 1.962 (98.091% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-windows' job in run #207.

Environment

GraalVM version GraalVM CE 20.0.1-dev+9.1 C compiler cl.exe (microsoft, x64, 19.36.32532)
Java version 20.0.1+9 Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 3130 73.063% 3773 50.287% 15114 45.800%
Reflection 941 21.965% 81 1.080% 478 1.448%
JNI 61 1.424% 51 0.680% 52 0.158%
Loaded 4284 100.000% 7503 100.000% 33000 100.000%

Image Details

Category Size in % Details
Code area 5.42MB 42.159% 8606 compilation units
Image heap 7.27MB 56.561% 154.26KB for 5 resources
Other data 168.47KB 1.279%
Total 12.86MB 100.000%

Resource Usage

Garbage collection 4.68s in 39 GCs
Peak RSS 1.63GB (23.320% of 7.00GB system memory)
CPU load 1.436 (71.806% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-extensive' job in run #207.

Environment

GraalVM version Oracle GraalVM 17.0.7+8.1 C compiler gcc (linux, x86_64, 11.3.0)
Java version 17.0.7+8-LTS Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 1847 59.066% 1737 46.369% 7701 35.592%
Reflection 632 20.211% 0 0.000% 276 1.276%
JNI 49 1.567% 32 0.854% 48 0.222%
Loaded 3127 100.000% 3746 100.000% 21637 100.000%

Image Details

Category Size in % Details
Code area 2.75MB 23.183% 3479 compilation units
Image heap 3.46MB 29.170% 108.00B for 1 resources
Debug info 5.33MB 44.894%
Other data 334.80KB 2.753%
Total 11.88MB 100.000%

Resource Usage

Garbage collection 4.44s in 106 GCs
Peak RSS 1.05GB (15.534% of 6.78GB system memory)
CPU load 1.963 (98.150% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-windows-msvc' job in run #207.

Environment

GraalVM version Oracle GraalVM 17.0.7+8.1 C compiler cl.exe (microsoft, x64, 19.36.32532)
Java version 17.0.7+8-LTS Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 1804 59.167% 1680 45.814% 7588 35.675%
Reflection 610 20.007% 0 0.000% 276 1.298%
JNI 53 1.738% 30 0.818% 48 0.226%
Loaded 3049 100.000% 3667 100.000% 21270 100.000%

Image Details

Category Size in % Details
Code area 2.80MB 44.182% 3432 compilation units
Image heap 3.45MB 54.506% 108.00B for 1 resources
Other data 84.98KB 1.311%
Total 6.33MB 100.000%

Resource Usage

Garbage collection 4.04s in 125 GCs
Peak RSS 991.13MB (13.828% of 7.00GB system memory)
CPU load 1.466 (73.316% of 2 CPU cores)

Report generated by setup-graalvm.

src/features/check-for-updates.ts Outdated Show resolved Hide resolved
src/features/check-for-updates.ts Show resolved Hide resolved
src/graalvm.ts Show resolved Hide resolved
src/main.ts Outdated Show resolved Hide resolved
@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-musl' job in run #209.

Environment

GraalVM version GraalVM CE 20.0.1-dev+9.1 C compiler x86_64-linux-musl-gcc (linux, x86_64, 10.2.1)
Java version 20.0.1+9 Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 3156 72.452% 3794 50.238% 15157 45.485%
Reflection 953 21.878% 81 1.073% 476 1.428%
JNI 57 1.309% 55 0.728% 52 0.156%
Loaded 4356 100.000% 7552 100.000% 33323 100.000%

Image Details

Category Size in % Details
Code area 5.28MB 39.392% 8614 compilation units
Image heap 7.77MB 58.000% 154.26KB for 5 resources
Other data 357.73KB 2.608%
Total 13.40MB 100.000%

Resource Usage

Garbage collection 3.96s in 42 GCs
Peak RSS 1.50GB (22.151% of 6.78GB system memory)
CPU load 1.960 (98.017% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-windows' job in run #209.

Environment

GraalVM version GraalVM CE 20.0.1-dev+9.1 C compiler cl.exe (microsoft, x64, 19.36.32532)
Java version 20.0.1+9 Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 3130 73.063% 3773 50.287% 15114 45.799%
Reflection 941 21.965% 81 1.080% 478 1.448%
JNI 61 1.424% 51 0.680% 52 0.158%
Loaded 4284 100.000% 7503 100.000% 33001 100.000%

Image Details

Category Size in % Details
Code area 5.42MB 42.146% 8606 compilation units
Image heap 7.28MB 56.575% 154.26KB for 5 resources
Other data 168.59KB 1.280%
Total 12.86MB 100.000%

Resource Usage

Garbage collection 5.77s in 111 GCs
Peak RSS 1.01GB (14.453% of 7.00GB system memory)
CPU load 1.562 (78.078% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-windows-msvc' job in run #209.

Environment

GraalVM version Oracle GraalVM 17.0.7+8.1 C compiler cl.exe (microsoft, x64, 19.36.32532)
Java version 17.0.7+8-LTS Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 1804 59.167% 1680 45.814% 7588 35.675%
Reflection 610 20.007% 0 0.000% 276 1.298%
JNI 53 1.738% 30 0.818% 48 0.226%
Loaded 3049 100.000% 3667 100.000% 21270 100.000%

Image Details

Category Size in % Details
Code area 2.80MB 44.194% 3432 compilation units
Image heap 3.45MB 54.506% 108.00B for 1 resources
Other data 84.25KB 1.300%
Total 6.33MB 100.000%

Resource Usage

Garbage collection 4.23s in 136 GCs
Peak RSS 953.63MB (13.305% of 7.00GB system memory)
CPU load 1.514 (75.724% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-extensive' job in run #209.

Environment

GraalVM version Oracle GraalVM 17.0.7+8.1 C compiler gcc (linux, x86_64, 11.3.0)
Java version 17.0.7+8-LTS Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 1847 59.066% 1737 46.369% 7701 35.592%
Reflection 632 20.211% 0 0.000% 276 1.276%
JNI 49 1.567% 32 0.854% 48 0.222%
Loaded 3127 100.000% 3746 100.000% 21637 100.000%

Image Details

Category Size in % Details
Code area 2.75MB 23.179% 3479 compilation units
Image heap 3.46MB 29.169% 108.00B for 1 resources
Debug info 5.33MB 44.897%
Other data 335.14KB 2.755%
Total 11.88MB 100.000%

Resource Usage

Garbage collection 5.55s in 102 GCs
Peak RSS 1.08GB (15.853% of 6.78GB system memory)
CPU load 1.957 (97.831% of 2 CPU cores)

Report generated by setup-graalvm.

Copy link
Member

@gilles-duboscq gilles-duboscq left a comment

Choose a reason for hiding this comment

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

LGTM

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-musl' job in run #211.

Environment

GraalVM version GraalVM CE 20.0.1-dev+9.1 C compiler x86_64-linux-musl-gcc (linux, x86_64, 10.2.1)
Java version 20.0.1+9 Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 3156 72.452% 3794 50.238% 15157 45.485%
Reflection 953 21.878% 81 1.073% 476 1.428%
JNI 57 1.309% 55 0.728% 52 0.156%
Loaded 4356 100.000% 7552 100.000% 33323 100.000%

Image Details

Category Size in % Details
Code area 5.28MB 39.393% 8614 compilation units
Image heap 7.77MB 58.000% 154.26KB for 5 resources
Other data 357.66KB 2.607%
Total 13.40MB 100.000%

Resource Usage

Garbage collection 4.06s in 43 GCs
Peak RSS 1.68GB (24.804% of 6.78GB system memory)
CPU load 1.959 (97.971% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-windows-msvc' job in run #211.

Environment

GraalVM version Oracle GraalVM 17.0.7+8.1 C compiler cl.exe (microsoft, x64, 19.36.32532)
Java version 17.0.7+8-LTS Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 1804 59.167% 1680 45.814% 7588 35.675%
Reflection 610 20.007% 0 0.000% 276 1.298%
JNI 53 1.738% 30 0.818% 48 0.226%
Loaded 3049 100.000% 3667 100.000% 21270 100.000%

Image Details

Category Size in % Details
Code area 2.80MB 44.176% 3432 compilation units
Image heap 3.45MB 54.506% 108.00B for 1 resources
Other data 85.38KB 1.318%
Total 6.33MB 100.000%

Resource Usage

Garbage collection 2.16s in 129 GCs
Peak RSS 856.10MB (5.225% of 16.00GB system memory)
CPU load 1.472 (73.617% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-windows' job in run #211.

Environment

GraalVM version GraalVM CE 20.0.1-dev+9.1 C compiler cl.exe (microsoft, x64, 19.36.32532)
Java version 20.0.1+9 Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 3130 73.063% 3773 50.287% 15114 45.801%
Reflection 941 21.965% 81 1.080% 478 1.449%
JNI 61 1.424% 51 0.680% 52 0.158%
Loaded 4284 100.000% 7503 100.000% 32999 100.000%

Image Details

Category Size in % Details
Code area 5.42MB 42.159% 8606 compilation units
Image heap 7.27MB 56.561% 154.26KB for 5 resources
Other data 168.53KB 1.280%
Total 12.86MB 100.000%

Resource Usage

Garbage collection 5.94s in 100 GCs
Peak RSS 1.07GB (15.230% of 7.00GB system memory)
CPU load 1.363 (68.155% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-extensive' job in run #211.

Environment

GraalVM version Oracle GraalVM 17.0.7+8.1 C compiler gcc (linux, x86_64, 11.3.0)
Java version 17.0.7+8-LTS Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 1847 59.066% 1737 46.369% 7701 35.590%
Reflection 632 20.211% 0 0.000% 276 1.276%
JNI 49 1.567% 32 0.854% 48 0.222%
Loaded 3127 100.000% 3746 100.000% 21638 100.000%

Image Details

Category Size in % Details
Code area 2.75MB 23.180% 3479 compilation units
Image heap 3.46MB 29.167% 108.00B for 1 resources
Debug info 5.33MB 44.899%
Other data 334.98KB 2.754%
Total 11.88MB 100.000%

Resource Usage

Garbage collection 5.56s in 100 GCs
Peak RSS 1.10GB (16.231% of 6.78GB system memory)
CPU load 1.956 (97.814% of 2 CPU cores)

Report generated by setup-graalvm.

README.md Outdated Show resolved Hide resolved
Copy link
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

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

LGTM

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Show resolved Hide resolved
__tests__/gds.test.ts Show resolved Hide resolved
src/main.ts Outdated Show resolved Hide resolved
@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-musl' job in run #213.

Environment

GraalVM version GraalVM CE 20.0.1-dev+9.1 C compiler x86_64-linux-musl-gcc (linux, x86_64, 10.2.1)
Java version 20.0.1+9 Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 3156 72.452% 3794 50.238% 15157 45.482%
Reflection 953 21.878% 81 1.073% 476 1.428%
JNI 57 1.309% 55 0.728% 52 0.156%
Loaded 4356 100.000% 7552 100.000% 33325 100.000%

Image Details

Category Size in % Details
Code area 5.28MB 39.393% 8614 compilation units
Image heap 7.77MB 58.000% 154.26KB for 5 resources
Other data 357.63KB 2.607%
Total 13.40MB 100.000%

Resource Usage

Garbage collection 4.40s in 47 GCs
Peak RSS 1.49GB (21.949% of 6.78GB system memory)
CPU load 1.961 (98.064% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-windows-msvc' job in run #213.

Environment

GraalVM version Oracle GraalVM 17.0.7+8.1 C compiler cl.exe (microsoft, x64, 19.36.32532)
Java version 17.0.7+8-LTS Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 1804 59.167% 1680 45.814% 7588 35.675%
Reflection 610 20.007% 0 0.000% 276 1.298%
JNI 53 1.738% 30 0.818% 48 0.226%
Loaded 3049 100.000% 3667 100.000% 21270 100.000%

Image Details

Category Size in % Details
Code area 2.80MB 44.182% 3432 compilation units
Image heap 3.45MB 54.506% 108.00B for 1 resources
Other data 85.02KB 1.312%
Total 6.33MB 100.000%

Resource Usage

Garbage collection 3.71s in 105 GCs
Peak RSS 986.93MB (13.769% of 7.00GB system memory)
CPU load 1.524 (76.188% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-native-image-windows' job in run #213.

Environment

GraalVM version GraalVM CE 20.0.1-dev+9.1 C compiler cl.exe (microsoft, x64, 19.36.32532)
Java version 20.0.1+9 Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 3130 73.063% 3773 50.287% 15114 45.801%
Reflection 941 21.965% 81 1.080% 478 1.449%
JNI 61 1.424% 51 0.680% 52 0.158%
Loaded 4284 100.000% 7503 100.000% 32999 100.000%

Image Details

Category Size in % Details
Code area 5.42MB 42.159% 8606 compilation units
Image heap 7.27MB 56.561% 154.26KB for 5 resources
Other data 168.47KB 1.279%
Total 12.86MB 100.000%

Resource Usage

Garbage collection 5.63s in 108 GCs
Peak RSS 1.03GB (14.741% of 7.00GB system memory)
CPU load 1.691 (84.526% of 2 CPU cores)

Report generated by setup-graalvm.

@github-actions
Copy link

GraalVM Native Image Build Report

helloworld generated as part of the 'test-extensive' job in run #213.

Environment

GraalVM version Oracle GraalVM 17.0.7+8.1 C compiler gcc (linux, x86_64, 11.3.0)
Java version 17.0.7+8-LTS Garbage collector Serial GC

Analysis Results

Category Types in % Fields in % Methods in %
Reachable 1847 59.066% 1737 46.369% 7701 35.590%
Reflection 632 20.211% 0 0.000% 276 1.276%
JNI 49 1.567% 32 0.854% 48 0.222%
Loaded 3127 100.000% 3746 100.000% 21638 100.000%

Image Details

Category Size in % Details
Code area 2.75MB 23.174% 3479 compilation units
Image heap 3.46MB 29.171% 108.00B for 1 resources
Debug info 5.33MB 44.892%
Other data 336.08KB 2.763%
Total 11.88MB 100.000%

Resource Usage

Garbage collection 4.75s in 99 GCs
Peak RSS 1.09GB (16.014% of 6.78GB system memory)
CPU load 1.961 (98.062% of 2 CPU cores)

Report generated by setup-graalvm.

@fniephaus fniephaus merged commit 8f41000 into main Jun 16, 2023
86 checks passed
@fniephaus fniephaus deleted the fniephaus/update branch June 16, 2023 11:18
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.

Add support for the new GraalVM for JDK17/20 release
5 participants