File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
plugins/jfr.streaming/src/org/graalvm/visualvm/jfr/streaming Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ public MonitoredNumbersResponse createThreadMonitoredDataResponse() {
94
94
explicitStates [i ] = te .status ;
95
95
explicitThreads [i ] = (int ) te .threadId ;
96
96
explicitTimeStamps [i ] = te .timeStamp ;
97
+ if (te .status == CommonConstants .THREAD_STATUS_ZOMBIE ) {
98
+ threadIdSet .remove (te .threadId );
99
+ }
97
100
}
98
101
events .clear ();
99
102
rp .setExplicitDataOnThreads (explicitThreads , explicitStates , explicitTimeStamps );
@@ -144,16 +147,11 @@ public void cleanup() {
144
147
145
148
private void addThreadEnd (long id , Instant startTime ) {
146
149
addEvent (id , CommonConstants .THREAD_STATUS_ZOMBIE , startTime .toEpochMilli ());
147
- synchronized (newThreads ) {
148
- threadIdSet .remove (id );
149
- }
150
150
}
151
151
152
152
private void addThreadStart (Instant startTime , long javaThreadId , String javaName ) {
153
153
synchronized (newThreads ) {
154
- if (threadIdSet .add (javaThreadId )) {
155
- newThreads .add (new JFRThread (javaThreadId , javaName ));
156
- }
154
+ newThreads .add (new JFRThread (javaThreadId , javaName ));
157
155
}
158
156
}
159
157
You can’t perform that action at this time.
0 commit comments