Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8240773: JFR: Non-Java threads are not serialized
Reviewed-by: mgronlun
  • Loading branch information
stefank committed Mar 19, 2020
1 parent fa069be commit e2947fe9e811798cd52da13bfa2cb2ed267112b5
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/hotspot/share/jfr/utilities/jfrThreadIterator.cpp
@@ -46,16 +46,15 @@ static JavaThread* next_java_thread(JavaThreadIteratorWithHandle& iter) {
}

static NonJavaThread* next_non_java_thread(NonJavaThread::Iterator& iter) {
NonJavaThread* next = NULL;
while (!iter.end()) {
next = iter.current();
NonJavaThread* next = iter.current();
iter.step();
assert(next != NULL, "invariant");
if (!thread_inclusion_predicate(next)) {
continue;
if (thread_inclusion_predicate(next)) {
return next;
}
}
return next;
return NULL;
}

JfrJavaThreadIteratorAdapter::JfrJavaThreadIteratorAdapter() : _iter(), _next(next_java_thread(_iter)) {}

0 comments on commit e2947fe

Please sign in to comment.