Skip to content

Commit

Permalink
8346921: Remove unused arg in markWord::must_be_preserved
Browse files Browse the repository at this point in the history
Reviewed-by: kbarrett, tschatzl
  • Loading branch information
albertnetymk committed Jan 3, 2025
1 parent 84e6432 commit 07c9f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/markWord.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class markWord {
static markWord INFLATING() { return zero(); } // inflate-in-progress

// Should this header be preserved during GC?
bool must_be_preserved(const oopDesc* obj) const {
bool must_be_preserved() const {
return (!is_unlocked() || !has_no_hash());
}

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/oop.inline.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ bool oopDesc::mark_must_be_preserved() const {
}

bool oopDesc::mark_must_be_preserved(markWord m) const {
return m.must_be_preserved(this);
return m.must_be_preserved();
}

#endif // SHARE_OOPS_OOP_INLINE_HPP

1 comment on commit 07c9f71

@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.