Skip to content

Commit

Permalink
Upstream hunk uses java_threads_do without is_JavaThread check
Browse files Browse the repository at this point in the history
  • Loading branch information
shipilev committed May 23, 2023
1 parent 0936c83 commit 1dbff5e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hotspot/share/runtime/safepoint.cpp
Expand Up @@ -563,9 +563,7 @@ class ParallelCleanupTask : public AbstractGangTask {
class LazyRootClosure : public ThreadClosure {
public:
void do_thread(Thread* thread) {
if (thread->is_Java_thread()) {
StackWatermarkSet::start_processing(thread->as_Java_thread(), StackWatermarkKind::gc);
}
StackWatermarkSet::start_processing(thread->as_Java_thread(), StackWatermarkKind::gc);
}
};
LazyRootClosure cl;
Expand Down

0 comments on commit 1dbff5e

Please sign in to comment.