Skip to content

Commit

Permalink
Adapt JDK-8336768: Allow captureCallState and critical linker options…
Browse files Browse the repository at this point in the history
… to be combined

Closes: #10304
  • Loading branch information
zakkak committed Dec 13, 2024
1 parent ca7e8b3 commit 7979a83
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

import com.oracle.svm.core.util.BasedOnJDKFile;
import jdk.internal.foreign.abi.ABIDescriptor;
import jdk.internal.foreign.abi.VMStorage;

Expand All @@ -53,12 +54,14 @@ public final class Target_jdk_internal_foreign_abi_NativeEntryPoint {
}

@Substitute
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+27/src/java.base/share/classes/jdk/internal/foreign/abi/NativeEntryPoint.java#L58-L82")
public static Target_jdk_internal_foreign_abi_NativeEntryPoint make(ABIDescriptor abi,
VMStorage[] argMoves, VMStorage[] returnMoves,
MethodType methodType,
boolean needsReturnBuffer,
int capturedStateMask,
boolean needsTransition) {
boolean needsTransition,
boolean usingAddressPairs) {
/*
* A VMStorage may be null only when the Linker.Option.critical(allowHeapAccess=true) option
* is passed. (see
Expand All @@ -73,6 +76,7 @@ public static Target_jdk_internal_foreign_abi_NativeEntryPoint make(ABIDescripto
}

@Substitute
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+27/src/java.base/share/classes/jdk/internal/foreign/abi/NativeEntryPoint.java#L120-L122")
public MethodType type() {
return methodType;
}
Expand Down

0 comments on commit 7979a83

Please sign in to comment.