Skip to content

Commit

Permalink
const-ed is_clear() method of AgeTable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ysramakrishna committed Jan 22, 2024
1 parent 3572bab commit 676e895
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/shared/ageTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ void AgeTable::clear() {
}

#ifndef PRODUCT
bool AgeTable::is_clear() {
for (size_t* p = sizes; p < sizes + table_size; ++p) {
bool AgeTable::is_clear() const {
for (const size_t* p = sizes; p < sizes + table_size; ++p) {
if (*p != 0) return false;
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/shared/ageTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AgeTable: public CHeapObj<mtGC> {

#ifndef PRODUCT
// check whether it's clear
bool is_clear();
bool is_clear() const;
#endif // !PRODUCT

// add entry
Expand Down

0 comments on commit 676e895

Please sign in to comment.