warning: ‘StupidAllocator::last_alloc’ will be initialized after [-Wreorder]
Signed-off-by: Jos Collin <jcollin@redhat.com>
const std::string& name,
int64_t _block_size)
: Allocator(name), cct(cct), num_free(0),
- free(10),
- last_alloc(0),
- block_size(_block_size)
+ block_size(_block_size),
+ free(10)
{
}
typedef interval_set<uint64_t,interval_set_map_t> interval_set_t;
std::vector<interval_set_t> free; ///< leading-edge copy
- uint64_t last_alloc;
+ uint64_t last_alloc = 0;
unsigned _choose_bin(uint64_t len);
void _insert_free(uint64_t offset, uint64_t len);