important bugfix

This commit is contained in:
Robin Müller 2020-10-15 00:43:23 +02:00
parent d149836612
commit 64bed475fe

View File

@ -4,7 +4,9 @@
LocalPool::LocalPool(object_id_t setObjectId, const LocalPoolConfig poolConfig, LocalPool::LocalPool(object_id_t setObjectId, const LocalPoolConfig poolConfig,
bool registered, bool spillsToHigherPools): bool registered, bool spillsToHigherPools):
SystemObject(setObjectId), NUMBER_OF_POOLS(poolConfig.size()) { SystemObject(setObjectId, registered),
NUMBER_OF_POOLS(poolConfig.size()),
spillsToHigherPools(spillsToHigherPools) {
uint16_t index = 0; uint16_t index = 0;
for (const auto& currentPoolConfig: poolConfig) { for (const auto& currentPoolConfig: poolConfig) {
this->elementSizes[index] = currentPoolConfig.first; this->elementSizes[index] = currentPoolConfig.first;
@ -16,8 +18,6 @@ LocalPool::LocalPool(object_id_t setObjectId, const LocalPoolConfig poolConfig,
for(auto& size: sizeLists[index]) { for(auto& size: sizeLists[index]) {
size = STORAGE_FREE; size = STORAGE_FREE;
} }
// std::memset(sizeLists[index], 0xff,
// numberOfElements[index] * sizeof(size_type));
index++; index++;
} }
} }