Skip to content

Commit 7c02782

Browse files
committed
GR-34435: remove unused methods.
1 parent 75b0c5a commit 7c02782

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateDiagnostics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public static boolean printFatalError(Log log, Pointer sp, CodePointer ip, Regis
191191
* further errors occur while printing diagnostics.
192192
*/
193193
if (!fatalErrorState().trySet(log, sp, ip, registerContext, frameHasCalleeSavedRegisters) && !isFatalErrorHandlingThread()) {
194-
log.string("Error: printDiagnostics already in progress by another thread.").newline();
194+
log.string("Error: printFatalError already in progress by another thread.").newline();
195195
log.newline();
196196
return false;
197197
}

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/SubstrateUtil.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
import org.graalvm.compiler.serviceprovider.JavaVersionUtil;
4343
import org.graalvm.nativeimage.Platform;
4444
import org.graalvm.nativeimage.Platforms;
45-
import org.graalvm.nativeimage.c.function.CodePointer;
4645
import org.graalvm.nativeimage.c.type.CCharPointer;
4746
import org.graalvm.nativeimage.c.type.CCharPointerPointer;
4847
import org.graalvm.nativeimage.c.type.CTypeConversion;
@@ -55,7 +54,6 @@
5554
import com.oracle.svm.core.annotate.RecomputeFieldValue.Kind;
5655
import com.oracle.svm.core.annotate.TargetClass;
5756
import com.oracle.svm.core.annotate.Uninterruptible;
58-
import com.oracle.svm.core.log.Log;
5957
import com.oracle.svm.core.util.VMError;
6058
import com.oracle.svm.util.ReflectionUtil;
6159
import com.oracle.svm.util.StringUtil;
@@ -250,11 +248,6 @@ public interface Thunk {
250248
void invoke();
251249
}
252250

253-
/** Prints extensive diagnostic information for a fatal error to the given log. */
254-
public static boolean printDiagnostics(Log log, Pointer sp, CodePointer ip) {
255-
return SubstrateDiagnostics.printFatalError(log, sp, ip, WordFactory.nullPointer(), false);
256-
}
257-
258251
/**
259252
* Similar to {@link String#split(String)} but with a fixed separator string instead of a
260253
* regular expression. This avoids making regular expression code reachable.

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/thread/VMThreads.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -774,12 +774,6 @@ public static void assertStatusVM() {
774774
}
775775
}
776776

777-
// This method will be removed in GR-34435.
778-
@Uninterruptible(reason = "Called from uninterruptible code.", mayBeInlined = true)
779-
public static void setStatusIgnoreSafepoints() {
780-
SafepointBehavior.markThreadAsCrashed();
781-
}
782-
783777
public static boolean isValidStatus(int status) {
784778
return status > STATUS_ILLEGAL && status <= MAX_STATUS;
785779
}

0 commit comments

Comments
 (0)