logalloc: tracker: mark functions const/noexcept
Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
@@ -530,15 +530,15 @@ size_t tracker::reclaim(size_t bytes) {
|
||||
return _impl->reclaim(bytes, is_preemptible::no);
|
||||
}
|
||||
|
||||
occupancy_stats tracker::region_occupancy() {
|
||||
occupancy_stats tracker::region_occupancy() const noexcept {
|
||||
return _impl->region_occupancy();
|
||||
}
|
||||
|
||||
occupancy_stats tracker::occupancy() {
|
||||
occupancy_stats tracker::occupancy() const noexcept {
|
||||
return _impl->occupancy();
|
||||
}
|
||||
|
||||
size_t tracker::non_lsa_used_space() const {
|
||||
size_t tracker::non_lsa_used_space() const noexcept {
|
||||
return _impl->non_lsa_used_space();
|
||||
}
|
||||
|
||||
@@ -2104,11 +2104,11 @@ lsa_buffer::~lsa_buffer() {
|
||||
}
|
||||
}
|
||||
|
||||
size_t tracker::reclamation_step() const {
|
||||
size_t tracker::reclamation_step() const noexcept {
|
||||
return _impl->reclamation_step();
|
||||
}
|
||||
|
||||
bool tracker::should_abort_on_bad_alloc() {
|
||||
bool tracker::should_abort_on_bad_alloc() const noexcept {
|
||||
return _impl->should_abort_on_bad_alloc();
|
||||
}
|
||||
|
||||
|
||||
@@ -97,20 +97,20 @@ public:
|
||||
void reclaim_all_free_segments();
|
||||
|
||||
// Returns aggregate statistics for all pools.
|
||||
occupancy_stats region_occupancy();
|
||||
occupancy_stats region_occupancy() const noexcept;
|
||||
|
||||
// Returns statistics for all segments allocated by LSA on this shard.
|
||||
occupancy_stats occupancy();
|
||||
occupancy_stats occupancy() const noexcept;
|
||||
|
||||
// Returns amount of allocated memory not managed by LSA
|
||||
size_t non_lsa_used_space() const;
|
||||
size_t non_lsa_used_space() const noexcept;
|
||||
|
||||
impl& get_impl() { return *_impl; }
|
||||
impl& get_impl() noexcept { return *_impl; }
|
||||
|
||||
// Returns the minimum number of segments reclaimed during single reclamation cycle.
|
||||
size_t reclamation_step() const;
|
||||
size_t reclamation_step() const noexcept;
|
||||
|
||||
bool should_abort_on_bad_alloc();
|
||||
bool should_abort_on_bad_alloc() const noexcept;
|
||||
};
|
||||
|
||||
class tracker_reclaimer_lock {
|
||||
|
||||
Reference in New Issue
Block a user