diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-24 19:51:52 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-24 19:51:52 +0000 |
commit | d308c42b52505935a05f0deb2b859cf5ecd8a145 (patch) | |
tree | 8b82cf7140028491a30802af958637a395f060bb /vespalib | |
parent | 5eb6eb5dddc63510f356c148eee5440892416253 (diff) |
Remove incorrect noexcept
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/datastore/bufferstate.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/bufferstate.cpp b/vespalib/src/vespa/vespalib/datastore/bufferstate.cpp index c0c65ace7cf..49f126d4a7c 100644 --- a/vespalib/src/vespa/vespalib/datastore/bufferstate.cpp +++ b/vespalib/src/vespa/vespalib/datastore/bufferstate.cpp @@ -57,10 +57,7 @@ roundUpToMatchAllocator(size_t sz) noexcept } AllocResult -calc_allocation(uint32_t bufferId, - BufferTypeBase &typeHandler, - size_t free_entries_needed, - bool resizing) noexcept +calc_allocation(uint32_t bufferId, BufferTypeBase &typeHandler, size_t free_entries_needed, bool resizing) { size_t alloc_entries = typeHandler.calc_entries_to_alloc(bufferId, free_entries_needed, resizing); size_t entry_size = typeHandler.entry_size(); @@ -78,10 +75,8 @@ calc_allocation(uint32_t bufferId, } void -BufferState::on_active(uint32_t bufferId, uint32_t typeId, - BufferTypeBase *typeHandler, - size_t free_entries_needed, - std::atomic<void*>& buffer) +BufferState::on_active(uint32_t bufferId, uint32_t typeId, BufferTypeBase *typeHandler, + size_t free_entries_needed, std::atomic<void*>& buffer) { assert(buffer.load(std::memory_order_relaxed) == nullptr); assert(_buffer.get() == nullptr); @@ -207,15 +202,12 @@ BufferState::free_entries(EntryRef ref, size_t num_entries, size_t ref_offset) auto type_handler = getTypeHandler(); auto buffer_underflow_size = type_handler->buffer_underflow_size(); type_handler->clean_hold(get_buffer(buffer_underflow_size), ref_offset, num_entries, - BufferTypeBase::CleanContext(_stats.extra_used_bytes_ref(), - _stats.extra_hold_bytes_ref())); + BufferTypeBase::CleanContext(_stats.extra_used_bytes_ref(), _stats.extra_hold_bytes_ref())); } void -BufferState::fallback_resize(uint32_t bufferId, - size_t free_entries_needed, - std::atomic<void*>& buffer, - Alloc &holdBuffer) +BufferState::fallback_resize(uint32_t bufferId, size_t free_entries_needed, + std::atomic<void*>& buffer, Alloc &holdBuffer) { assert(getState() == State::ACTIVE); auto type_handler = getTypeHandler(); |