From c92a7deba50cbf5e283d1bd0ef5f2d6f8a4fc947 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Gr=C3=B6nlund?= Date: Wed, 8 Feb 2023 10:26:40 +0000 Subject: [PATCH] 8301380: jdk/jfr/api/consumer/streaming/TestCrossProcessStreaming.java Reviewed-by: dholmes, egahlin --- src/hotspot/share/jfr/utilities/jfrThreadIterator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hotspot/share/jfr/utilities/jfrThreadIterator.cpp b/src/hotspot/share/jfr/utilities/jfrThreadIterator.cpp index 956224a80d9..ced5973b1c5 100644 --- a/src/hotspot/share/jfr/utilities/jfrThreadIterator.cpp +++ b/src/hotspot/share/jfr/utilities/jfrThreadIterator.cpp @@ -38,6 +38,9 @@ static bool java_thread_inclusion_predicate(JavaThread* jt, bool live_only) { if (live_only && jt->thread_state() == _thread_new) { return false; } + if (jt->is_attaching_via_jni()) { + return false; + } return thread_inclusion_predicate(jt); }