src/jdk.jfr/share/classes/jdk/jfr/consumer/AbstractEventStream.java
branchJEP-349-branch
changeset 57921 08327ab323c5
parent 57861 86022e34ba63
child 57948 59ad17a19e24
equal deleted inserted replaced
57920:de358b994ad9 57921:08327ab323c5
   185                 if (name == null) {
   185                 if (name == null) {
   186                     return InternalEventFilter.ACCEPT_ALL;
   186                     return InternalEventFilter.ACCEPT_ALL;
   187                 }
   187                 }
   188                 ef.setThreshold(name, 0);
   188                 ef.setThreshold(name, 0);
   189             }
   189             }
   190             return ef.threadSafe();
   190             return ef;
   191         }
   191         }
   192 
   192 
   193         final public StreamConfiguration setReuse(boolean reuse) {
   193         final public StreamConfiguration setReuse(boolean reuse) {
   194             this.reuse = reuse;
   194             this.reuse = reuse;
   195             changed = true;
   195             changed = true;
   340         this.accessControlContext = acc;
   340         this.accessControlContext = acc;
   341         this.active = active;
   341         this.active = active;
   342         // Create thread object in constructor to ensure caller has
   342         // Create thread object in constructor to ensure caller has
   343         // permission before constructing object
   343         // permission before constructing object
   344         thread = new Thread(this);
   344         thread = new Thread(this);
   345         thread.setDaemon(true);
       
   346     }
   345     }
   347 
   346 
   348     public final void run() {
   347     public final void run() {
   349         AccessController.doPrivileged(new PrivilegedAction<Void>() {
   348         AccessController.doPrivileged(new PrivilegedAction<Void>() {
   350             @Override
   349             @Override