Skip to content

Commit

Permalink
svm: should not reach Continuation.pin/unpin if Loom is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
zapster committed Sep 4, 2022
1 parent 1709fc6 commit 97203ef
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ final class Target_jdk_internal_vm_Continuation__WithoutLoom {
static boolean yield(Target_jdk_internal_vm_ContinuationScope scope) {
throw VMError.shouldNotReachHere();
}

@Substitute
static void pin() {
throw VMError.shouldNotReachHere();
}

@Substitute
static void unpin() {
throw VMError.shouldNotReachHere();
}
}

@TargetClass(className = "Continuation", classNameProvider = Package_jdk_internal_vm_helper.class, onlyWith = LoomJDK.class)
Expand Down

0 comments on commit 97203ef

Please sign in to comment.