Skip to content

Commit 07c9f71

Browse files
committed
8346921: Remove unused arg in markWord::must_be_preserved
Reviewed-by: kbarrett, tschatzl
1 parent 84e6432 commit 07c9f71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hotspot/share/oops/markWord.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ class markWord {
188188
static markWord INFLATING() { return zero(); } // inflate-in-progress
189189

190190
// Should this header be preserved during GC?
191-
bool must_be_preserved(const oopDesc* obj) const {
191+
bool must_be_preserved() const {
192192
return (!is_unlocked() || !has_no_hash());
193193
}
194194

src/hotspot/share/oops/oop.inline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ bool oopDesc::mark_must_be_preserved() const {
452452
}
453453

454454
bool oopDesc::mark_must_be_preserved(markWord m) const {
455-
return m.must_be_preserved(this);
455+
return m.must_be_preserved();
456456
}
457457

458458
#endif // SHARE_OOPS_OOP_INLINE_HPP

0 commit comments

Comments
 (0)