Skip to content

Conversation

@DarkAtra
Copy link
Contributor

@DarkAtra DarkAtra commented Mar 21, 2023

Fixes #165.

Adds native-image reflection hints required to create *Options class instances.

Netty is already compatible with native-image via https://github.com/oracle/graalvm-reachability-metadata. Details can be found here: https://www.graalvm.org/native-image/libraries-and-frameworks/

Tests could also be executed against the native executable using:

<plugin>
    <groupId>org.graalvm.buildtools</groupId>
    <artifactId>native-maven-plugin</artifactId>
</plugin>

However, i only found a few tests in the project, so i'd need some input here.

@DarkAtra DarkAtra changed the title feat: support for GraalVM (ribasco/async-gamequery-lib#165) feat(gh-165): support for GraalVM Mar 21, 2023
@DarkAtra
Copy link
Contributor Author

DarkAtra commented Mar 21, 2023

There seems to be an issue on Linux (x86_64) if the EpollDatagramChannel is used. Still investigating..

Update:
Disabling the use of the linux native channel via -Dagql.nativeTransport=false fixes the issue. I'm assuming that the EpollDatagramChannel is using reflection somewhere and the hint for it is still missing.

@ribasco ribasco self-requested a review March 30, 2023 00:22
@ribasco ribasco self-assigned this Mar 30, 2023
@ribasco ribasco removed their request for review March 30, 2023 00:23
@ribasco ribasco merged commit 71c37a5 into ribasco:master Mar 30, 2023
@DarkAtra DarkAtra deleted the graal-vm-support branch March 30, 2023 18:16
DarkAtra added a commit to DarkAtra/v-rising-discord-bot that referenced this pull request Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compatibility with GraalVM Native Image

2 participants