helidon-io / helidon

Java libraries for writing microservices
https://helidon.io
Apache License 2.0
3.5k stars 566 forks source link

4.x: Updates to support latest dev release of GraalVM native image #8838

Closed tomas-langer closed 3 months ago

tomas-langer commented 4 months ago

Updates to native image configuration to support latest release of GraalVM (tested with OpenJDK Runtime Environment GraalVM CE 23-dev+23.1 (build 23+23-jvmci-b01)).

There are a few changes that cause compilation failures, probably due to the change of "strict image heap" now being the default. In most cases the problems were caused by instances getting into the image heap that were not marked as initialize-at-build-time.

This PR fixes all the cases that were needed for our MP-1 integration test, and for a quickstart-mp (pipeline should find if there are other issues).

tomas-langer commented 4 months ago

I have tried building the mp-2 example

lprimak commented 3 months ago

Please see https://github.com/helidon-io/helidon/discussions/8867 and https://github.com/helidon-io/helidon/issues/8863 (haven't tried with .10 yet) Thank you!