We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54f76b5 commit c3398faCopy full SHA for c3398fa
src/jdk.jdi/share/classes/com/sun/tools/jdi/ThreadReferenceImpl.java
@@ -612,20 +612,17 @@ public boolean isVirtual() {
612
if (isVirtualCached) {
613
return isVirtual;
614
}
615
+ boolean result = false;
616
if (vm.mayCreateVirtualThreads()) {
- boolean result;
617
try {
618
result = JDWP.ThreadReference.IsVirtual.process(vm, this).isVirtual;
619
} catch (JDWPException exc) {
620
throw exc.toJDIException();
621
622
- isVirtual = result;
623
- return result;
624
- } else {
625
- isVirtual = false;
626
- isVirtualCached = true;
627
- return false;
628
+ isVirtual = result;
+ isVirtualCached = true;
+ return result;
629
630
631
public String toString() {
0 commit comments