From 76c175a18a983452eb6424747f351a0e33b4a74b Mon Sep 17 00:00:00 2001 From: Christian Haeubl Date: Fri, 17 Oct 2025 08:32:22 +0200 Subject: [PATCH] Fix wrong signature in NativeGCStackWalker. --- .../oracle/svm/core/gc/shared/NativeGCStackWalker.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/gc/shared/NativeGCStackWalker.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/gc/shared/NativeGCStackWalker.java index aab39e78e427..2a193a6f22d9 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/gc/shared/NativeGCStackWalker.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/gc/shared/NativeGCStackWalker.java @@ -98,8 +98,8 @@ public NativeGCStackWalker() { funcFreeThreadStackFrames = CEntryPointLiteral.create(NativeGCStackWalker.class, "freeThreadStackFrames", Isolate.class, IsolateThread.class, StackFramesPerThread.class); if (ContinuationSupport.isSupported()) { - funcFetchContinuationStackFrames = CEntryPointLiteral.create(NativeGCStackWalker.class, "fetchContinuationStackFrames", Isolate.class, PointerBase.class, Pointer.class); - funcFreeContinuationStackFrames = CEntryPointLiteral.create(NativeGCStackWalker.class, "freeContinuationStackFrames", Isolate.class, PointerBase.class, StackFrames.class); + funcFetchContinuationStackFrames = CEntryPointLiteral.create(NativeGCStackWalker.class, "fetchContinuationStackFrames", Isolate.class, Pointer.class); + funcFreeContinuationStackFrames = CEntryPointLiteral.create(NativeGCStackWalker.class, "freeContinuationStackFrames", Isolate.class, StackFrames.class); } else { funcFetchContinuationStackFrames = null; funcFreeContinuationStackFrames = null; @@ -134,7 +134,7 @@ public static void freeThreadStackFrames(@SuppressWarnings("unused") Isolate iso @Uninterruptible(reason = "GC may only call uninterruptible code.") @CEntryPoint(include = UseNativeGCAndContinuations.class, publishAs = Publish.NotPublished) @CEntryPointOptions(prologue = InitializeReservedRegistersForUnattachedThread.class, epilogue = CEntryPointOptions.NoEpilogue.class) - public static StackFrames fetchContinuationStackFrames(@SuppressWarnings("unused") Isolate isolate, @SuppressWarnings("unused") PointerBase heapBase, Pointer storedContinuation) { + public static StackFrames fetchContinuationStackFrames(@SuppressWarnings("unused") Isolate isolate, Pointer storedContinuation) { StoredContinuation s = (StoredContinuation) storedContinuation.toObject(); ContinuationStackFrameCollectorData data = StackValue.get(ContinuationStackFrameCollectorData.class); ContinuationStackFrameCollector.initialize(data); @@ -145,7 +145,7 @@ public static StackFrames fetchContinuationStackFrames(@SuppressWarnings("unused @Uninterruptible(reason = "May be called by an unattached thread (during or outside of a safepoint).") @CEntryPoint(include = UseNativeGCAndContinuations.class, publishAs = Publish.NotPublished) @CEntryPointOptions(prologue = InitializeReservedRegistersForUnattachedThread.class, epilogue = CEntryPointOptions.NoEpilogue.class) - public static void freeContinuationStackFrames(@SuppressWarnings("unused") Isolate isolate, @SuppressWarnings("unused") PointerBase heapBase, StackFrames stackFrames) { + public static void freeContinuationStackFrames(@SuppressWarnings("unused") Isolate isolate, StackFrames stackFrames) { NullableNativeMemory.free(stackFrames); }