Skip to content

Add support for native compilation.#634

Merged
zhenlineo merged 1 commit into
neo4j:4.0from
michael-simons:feature/improve-shaded-netty-native
Oct 3, 2019
Merged

Add support for native compilation.#634
zhenlineo merged 1 commit into
neo4j:4.0from
michael-simons:feature/improve-shaded-netty-native

Conversation

@michael-simons

Copy link
Copy Markdown
Contributor

This commit adds the following:

  • Oracle SVM, part of the Graal VM that allows substitutes for classes and methods, deleting them and aliasing them on the GraalVM.
  • Substitutions to make Netty work natively with SSL. Those substitutions live under internal/svm and are not visible when used outside GraalVM

The PR also removes Nettys own native-image properties and replaces them with the setting needed for our driver.

Those settings cannot be easily rewritten using the Shade transformer, so it’s more simple to do it by hand.

The changes have been tested sucessfully on Graal 19.2.0.1 with Quarkus and Helidon microservices framework compiled natively.

This commit adds the following:

- Oracle SVM, part of the Graal VM that allows substitutes for classes and methods, deleting them and aliasing them on the GraalVM.
- Substitutions to make Netty work natively with SSL. Those substitutions live under internal/svm and are not visible when used outside GraalVM

The PR also removes Nettys own native-image properties and replaces them with the setting needed for our driver.

Those settings cannot be easily rewritten using the Shade transformer, so it’s more simple to do it by hand.

The changes have been tested sucessfully on Graal 19.2.0.1 with Quarkus and Helidon microservices framework compiled natively.
@michael-simons

Copy link
Copy Markdown
Contributor Author

Awesome 🎉, thanks for including it @zhenlineo

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.

2 participants