Skip to content

Commit 59b0c8d

Browse files
Fix spacing and make functions const.
1 parent 64d1c39 commit 59b0c8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/gc/shared/collectedHeap.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ class CollectedHeap : public CHeapObj<mtInternal> {
244244
virtual size_t unused() const;
245245

246246
// Historic gc information
247-
size_t free_at_last_gc() { return _capacity_at_last_gc - _used_at_last_gc; }
248-
size_t used_at_last_gc() { return _used_at_last_gc; }
247+
size_t free_at_last_gc() const { return _capacity_at_last_gc - _used_at_last_gc; }
248+
size_t used_at_last_gc() const { return _used_at_last_gc; }
249249
void update_capacity_and_used_at_gc();
250250

251251
// Return "true" if the part of the heap that allocates Java

0 commit comments

Comments
 (0)