MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / increment_mapping

Method increment_mapping

src/common/classes/alloc.h:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137 }
138
139 void increment_mapping(size_t size) noexcept
140 {
141 for (MemoryStats* statistics = this; statistics; statistics = statistics->mst_parent)
142 {
143 const size_t temp = statistics->mst_mapped.exchangeAdd(size) + size;
144 if (temp > statistics->mst_max_mapped)
145 statistics->mst_max_mapped = temp;
146 }
147 }
148
149 void decrement_mapping(size_t size) noexcept
150 {

Callers

nothing calls this directly

Calls 1

exchangeAddMethod · 0.80

Tested by

no test coverage detected