Skip to content

Don't pass -H:+ForeignAPISupport explicitely with GraalVM for JDK 25 #48374

@zakkak

Description

@zakkak

Description

In

if ((graalVMVersion.compareTo(io.quarkus.runtime.graal.GraalVM.Version.VERSION_24_2_0) >= 0 && AMD64.active) ||
graalVMVersion.compareTo(io.quarkus.runtime.graal.GraalVM.Version.VERSION_25_0_0) >= 0) {
addExperimentalVMOption(nativeImageArgs, "-H:+ForeignAPISupport");
}

we explicitly pass -H:+ForeignAPISupport to native-image when GraalVM version is >= GraalVM for JDK 24

Starting with GraalVM for JDK 25 -H:+ForeignAPISupport will be enabled by default, see oracle/graal#11335 so we no loger need to add it explicitly.

cc @Karm

Implementation ideas

Only enable the option for GraalVM for JDK 24 and AMD64 platform

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/housekeepingIssue type for generalized tasks not related to bugs or enhancementsgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions