Skip to content

Commit

Permalink
fixup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lewurm committed Aug 19, 2024
1 parent 8c06f6c commit dcf6130
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,13 @@ public static void setCapabilities(long capabilities) {
public static void setFunctionMissingAddresses(int functionCount) {
long ptr = JNI_NATIVE_INTERFACE + CAPABILITIES_OFFSET;

// aka. reserved3
//
// OpenJDK: NULL
// EspressoVM: NULL
// GraalVM Native Image: pointer to UnimplementedWithJNIEnvArgument function (see #875)
long currentTable = memGetAddress(ptr);

if (functionCount == 0) {
if (currentTable != FUNCTION_MISSING_ABORT) {
FUNCTION_MISSING_ABORT_TABLE = NULL;
Expand All @@ -195,7 +201,7 @@ public static void setFunctionMissingAddresses(int functionCount) {
}
} else {
// OpenJDK: NULL
// EspressoVM: NULL
// EspressoVM: pointer to VM internal
// GraalVM Native Image: pointer to UnimplementedWithJNIEnvArgument function (see #875)
long RESERVED0_NULL = memGetAddress(JNI_NATIVE_INTERFACE);

Expand Down

0 comments on commit dcf6130

Please sign in to comment.