Skip to content

Commit

Permalink
8280784: VM_Cleanup unnecessarily processes all thread oops
Browse files Browse the repository at this point in the history
Reviewed-by: eosterlund, shade
  • Loading branch information
stefank committed Jan 28, 2022
1 parent 973dda5 commit 8a3cca0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hotspot/share/runtime/vmOperations.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ class VM_Cleanup: public VM_Operation {
public:
VMOp_Type type() const { return VMOp_Cleanup; }
void doit() {};
virtual bool skip_thread_oop_barriers() const {
// None of the safepoint cleanup tasks read oops in the Java threads.
return true;
}
};

class VM_ClearICs: public VM_Operation {
Expand Down

1 comment on commit 8a3cca0

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.