Skip to content

Commit

Permalink
svm: adopt "JDK-8322744: VirtualThread.notifyJvmtiDisableSuspend shou…
Browse files Browse the repository at this point in the history
…ld be static"
  • Loading branch information
zapster committed Jan 26, 2024
1 parent 4a20177 commit a2c11d6
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import com.oracle.svm.core.annotate.TargetClass;
import com.oracle.svm.core.annotate.TargetElement;
import com.oracle.svm.core.jdk.JDK21OrEarlier;
import com.oracle.svm.core.jdk.JDK22OrEarlier;
import com.oracle.svm.core.jdk.JDK22OrLater;
import com.oracle.svm.core.jdk.JDK23OrLater;
import com.oracle.svm.core.jfr.HasJfrSupport;
Expand Down Expand Up @@ -213,15 +214,23 @@ private void notifyJvmtiUnmount(boolean hide) {
}

@Substitute
@TargetElement(onlyWith = JDK23OrLater.class)
@SuppressWarnings({"static-method", "unused"})
private static void notifyJvmtiHideFrames(boolean hide) {
// unimplemented (GR-45392)
}

@Substitute
@TargetElement(name = "notifyJvmtiHideFrames", onlyWith = JDK22OrEarlier.class)
@SuppressWarnings({"static-method", "unused"})
private void notifyJvmtiHideFrames(boolean hide) {
private void notifyJvmtiHideFramesJDK22(boolean hide) {
// unimplemented (GR-45392)
}

@Substitute
@SuppressWarnings({"static-method", "unused"})
@TargetElement(onlyWith = JDK23OrLater.class)
private void notifyJvmtiDisableSuspend(boolean enter) {
private static void notifyJvmtiDisableSuspend(boolean enter) {
// unimplemented (GR-51158)
}

Expand Down

0 comments on commit a2c11d6

Please sign in to comment.