Skip to content

Commit 7c585ff

Browse files
committed
Remove constness
1 parent ba845f3 commit 7c585ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hotspot/share/nmt/mallocLimit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void MallocLimitSet::reset() {
145145
}
146146
}
147147

148-
void MallocLimitSet::print_on(outputStream* st) const {
148+
void MallocLimitSet::print_on(outputStream* st) {
149149
static const char* flagnames[] = { MODE_FATAL, MODE_OOM };
150150
if (_glob.sz > 0) {
151151
st->print_cr("MallocLimit: total limit: " PROPERFMT " (%s)", PROPERFMTARGS(_glob.sz),

src/hotspot/share/nmt/mallocLimit.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ class MallocLimitSet {
6868
void set_category_limit(MemTag mem_tag, size_t s, MallocLimitMode mode);
6969

7070
const malloclimit* global_limit() const { return &_glob; }
71-
const malloclimit* category_limit(MemTag mem_tag) const {
71+
const malloclimit* category_limit(MemTag mem_tag) {
7272
_cat.at_grow(NMTUtil::tag_to_index(mem_tag));
7373
return &_cat.at(NMTUtil::tag_to_index(mem_tag));
7474
}
7575

76-
void print_on(outputStream* st) const;
76+
void print_on(outputStream* st);
7777
};
7878

7979
class MallocLimitHandler : public AllStatic {

0 commit comments

Comments
 (0)