Misc AFAR VII updates + clang-tidy-19 + bump version to 0.6.0 (#54)
* Misc AFAR VII updates + clang-tidy-19 + bump version to 0.6.0 - move tests/rocprofv3/trace-period to tests/rocprofv3/collection-period - bump clang-tidy to v19 - fix misc clang-tidy errors * Update the collection period test - don't attach files on fail bc when test is disabled, it causes problems --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
This commit is contained in:
@@ -86,8 +86,8 @@ record_header_buffer::get_record_headers(size_t _n)
|
||||
{
|
||||
auto _lk = rhb_raii_lock{*this};
|
||||
|
||||
auto _sz = m_index.load(std::memory_order_acquire);
|
||||
if(_n > _sz) _n = _sz;
|
||||
auto _sz = m_index.load(std::memory_order_acquire);
|
||||
_n = std::min(_n, _sz);
|
||||
auto _ret = record_ptr_vec_t{};
|
||||
_ret.reserve(_n);
|
||||
for(size_t i = 0; i < _n; ++i)
|
||||
|
||||
@@ -75,7 +75,7 @@ get_new_capacity(size_t min_size, size_t /*t_size*/, size_t old_capacity)
|
||||
|
||||
// In theory 2*capacity can overflow if the capacity is 64 bit, but the
|
||||
// original capacity would never be large enough for this to be a problem.
|
||||
size_t new_capacity = 2 * old_capacity + 1; // Always grow.
|
||||
size_t new_capacity = (2 * old_capacity) + 1; // Always grow.
|
||||
return std::clamp(new_capacity, min_size, max_size);
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user