< prev index next >

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

Print this page
@@ -294,10 +294,19 @@
              filters.add(JDWP.EventRequest.Set.Modifier.ThreadOnly
                                        .create((ThreadReferenceImpl)thread));
          }
      }
  
+     abstract class ThreadLifecycleEventRequestImpl extends ThreadVisibleEventRequestImpl {
+         public synchronized void addPlatformThreadsOnlyFilter() {
+             if (isEnabled() || deleted) {
+                 throw invalidState();
+             }
+             filters.add(JDWP.EventRequest.Set.Modifier.PlatformThreadsOnly.create());
+         }
+     }
+ 
      abstract class ClassVisibleEventRequestImpl
                                    extends ThreadVisibleEventRequestImpl {
          public synchronized void addClassFilter(ReferenceType clazz) {
              validateMirror(clazz);
              if (isEnabled() || deleted) {

@@ -643,11 +652,11 @@
          public String toString() {
              return "step request " + thread() + state();
          }
      }
  
-     class ThreadDeathRequestImpl extends ThreadVisibleEventRequestImpl
+     class ThreadDeathRequestImpl extends ThreadLifecycleEventRequestImpl
                                   implements ThreadDeathRequest {
          ThreadDeathRequestImpl() {
              requestList().add(this);
          }
  

@@ -658,11 +667,11 @@
          public String toString() {
              return "thread death request " + state();
          }
      }
  
-     class ThreadStartRequestImpl extends ThreadVisibleEventRequestImpl
+     class ThreadStartRequestImpl extends ThreadLifecycleEventRequestImpl
                                   implements ThreadStartRequest {
          ThreadStartRequestImpl() {
              requestList().add(this);
          }
  
< prev index next >