< prev index next > src/java.base/share/classes/jdk/internal/foreign/abi/UpcallStubs.java
Print this page
import java.lang.foreign.MemorySegment;
import java.lang.foreign.Arena;
import jdk.internal.foreign.MemorySessionImpl;
+ import jdk.internal.foreign.Utils;
public final class UpcallStubs {
private UpcallStubs() {
}
private static void freeUpcallStub(long stubAddress) {
if (!freeUpcallStub0(stubAddress)) {
- throw new IllegalStateException("Not a stub address: " + stubAddress);
+ throw new IllegalStateException("Not a stub address: " + Utils.toHexString(stubAddress));
}
}
// natives
< prev index next >