< prev index next >

src/jdk.jdi/share/classes/com/sun/tools/jdi/VirtualMachineImpl.java

Print this page
@@ -205,13 +205,15 @@
          this.sequenceNumber = sequenceNumber;
  
          /* Create ThreadGroup to be used by all threads servicing
           * this VM.
           */
-         threadGroupForJDI = new ThreadGroup(vmManager.mainGroupForJDI(),
+         @SuppressWarnings("deprecation")
+         ThreadGroup group = new ThreadGroup(vmManager.mainGroupForJDI(),
                                              "JDI [" +
                                              this.hashCode() + "]");
+         threadGroupForJDI = group;
  
          /*
           * Set up a thread to communicate with the target VM over
           * the specified transport.
           */

@@ -830,10 +832,17 @@
      public boolean canGetModuleInfo() {
          validateVM();
          return versionInfo().jdwpMajor >= 9;
      }
  
+     @Override
+     public boolean supportsVirtualThreads() {
+         validateVM();
+         return hasNewCapabilities() &&
+                 capabilitiesNew().supportsVirtualThreads;
+     }
+ 
      public void setDebugTraceMode(int traceFlags) {
          validateVM();
          this.traceFlags = traceFlags;
          this.traceReceives = (traceFlags & TRACE_RECEIVES) != 0;
      }
< prev index next >