8240773: JFR: Non-Java threads are not serialized
Reviewed-by: mgronlun
This commit is contained in:
parent
fa069be2f2
commit
e2947fe9e8
@ -46,17 +46,16 @@ static JavaThread* next_java_thread(JavaThreadIteratorWithHandle& iter) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static NonJavaThread* next_non_java_thread(NonJavaThread::Iterator& iter) {
|
static NonJavaThread* next_non_java_thread(NonJavaThread::Iterator& iter) {
|
||||||
NonJavaThread* next = NULL;
|
|
||||||
while (!iter.end()) {
|
while (!iter.end()) {
|
||||||
next = iter.current();
|
NonJavaThread* next = iter.current();
|
||||||
iter.step();
|
iter.step();
|
||||||
assert(next != NULL, "invariant");
|
assert(next != NULL, "invariant");
|
||||||
if (!thread_inclusion_predicate(next)) {
|
if (thread_inclusion_predicate(next)) {
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return next;
|
return next;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
JfrJavaThreadIteratorAdapter::JfrJavaThreadIteratorAdapter() : _iter(), _next(next_java_thread(_iter)) {}
|
JfrJavaThreadIteratorAdapter::JfrJavaThreadIteratorAdapter() : _iter(), _next(next_java_thread(_iter)) {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user