Skip to content

Commit

Permalink
Merge pull request #35 from Karm/issue-28
Browse files Browse the repository at this point in the history
[Backport]  Delete native methods from java.lang.Thread
  • Loading branch information
Karm authored Dec 20, 2024
2 parents 9ef431c + 438364c commit 28028ec
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,10 @@ private StackTraceElement[] getStackTrace() {
return JavaThreads.getStackTrace(false, JavaThreads.fromTarget(this));
}

@Delete
@SuppressWarnings({"static-method"})
private native Object getStackTrace0();

/** @see com.oracle.svm.core.jdk.StackTraceUtils#asyncGetStackTrace */
@Delete
@TargetElement(onlyWith = JDK19OrLater.class)
Expand Down Expand Up @@ -798,6 +802,9 @@ boolean isTerminated() {
@Alias
@TargetElement(onlyWith = JDK19OrLater.class)
native long threadId();

@Delete
static native long getNextThreadIdOffset();
}

@TargetClass(value = Thread.class, innerClass = "Builder", onlyWith = JDK19OrLater.class)
Expand Down

0 comments on commit 28028ec

Please sign in to comment.