GeezerVison is showing github.com — [feat][ml] Configure and track named Pulsar allocators independently … · apache/pulsar@ca58c20
File treeExpand file treeCollapse file tree Open diff view settings main/java/org/apache/bookkeeper/mledger test/java/org/apache/bookkeeper/mledger/impl/cache
main/java/org/apache/pulsar/broker test/java/org/apache/pulsar/broker/stats
main/java/org/apache/pulsar/common test/java/org/apache/pulsar/common/allocator
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: conf/pulsar_env.sh +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 49 | 49 | # pooled - Netty PooledByteBufAllocator; prefers direct buffers (default). | 50 | 50 | # unpooled - Netty UnpooledByteBufAllocator; prefers heap buffers. | 51 | 51 | # adaptive - Netty AdaptiveByteBufAllocator; auto-tunes pooling and prefers direct buffers. | | 52 | +# Named allocators override each setting independently with pulsar.allocator.<id>.<setting>: | | 53 | +# pulsar.allocator.default.type - allocator used by general Pulsar operations | | 54 | +# pulsar.allocator.ml-cache.type - separate allocator used for managed-ledger cache copies | | 55 | +# Supported settings: type, exit_on_oom (false), out_of_memory_policy (FallbackToHeap or ThrowException). | | 56 | +# Named settings fall back to the unqualified pulsar.allocator.<setting>, then the built-in default. | | 57 | +# For example: -Dpulsar.allocator.type=pooled -Dpulsar.allocator.ml-cache.type=adaptive | | 58 | +# Settings are read when an allocator is first created. default overrides do not apply to other IDs. | | 59 | +# Leak detection is global: use -Dio.netty.leakDetection.level=disabled|simple|advanced|paranoid. | | 60 | +# pulsar.allocator.leak_detection and per-allocator leak_detection settings are not supported. | 52 | 61 | # -Dpulsar.allocator.pooled=true is deprecated; use -Dpulsar.allocator.type=pooled instead. | 53 | 62 | # pulsar.allocator.type takes precedence over the legacy pulsar.allocator.pooled property. | 54 | 63 | # If pulsar.allocator.type is unset, pulsar.allocator.pooled=true (or unset) selects pooled; | |
Collapse file Copy file name to clipboardExpand all lines: managed-ledger/src/main/java/org/apache/bookkeeper/mledger/OpenTelemetryManagedLedgerCacheStats.java +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | */ | 19 | 19 | package org.apache.bookkeeper.mledger; | 20 | 20 |
| | 21 | +import static org.apache.pulsar.common.allocator.PulsarByteBufAllocator.ML_CACHE_ALLOCATOR_NAME; | 21 | 22 | import io.opentelemetry.api.OpenTelemetry; | 22 | 23 | import io.opentelemetry.api.metrics.BatchCallback; | 23 | 24 | import io.opentelemetry.api.metrics.ObservableLongMeasurement; | 24 | 25 | import org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryImpl; | 25 | | -import org.apache.bookkeeper.mledger.impl.cache.PooledByteBufAllocatorStats; | 26 | | -import org.apache.bookkeeper.mledger.impl.cache.RangeEntryCacheImpl; | | 26 | +import org.apache.pulsar.common.allocator.ByteBufAllocatorStats; | | 27 | +import org.apache.pulsar.common.allocator.PulsarByteBufAllocator; | 27 | 28 | import org.apache.pulsar.opentelemetry.Constants; | 28 | 29 | import org.apache.pulsar.opentelemetry.OpenTelemetryAttributes.CacheEntryStatus; | 29 | 30 | import org.apache.pulsar.opentelemetry.OpenTelemetryAttributes.CacheOperationStatus; | @@ -160,7 +161,8 @@ private void recordMetrics(ManagedLedgerFactoryImpl factory) { | 160 | 161 | cacheOperationCounter.record(stats.getCacheMissesTotal(), CacheOperationStatus.MISS.attributes); | 161 | 162 | cacheOperationBytesCounter.record(stats.getCacheMissesBytesTotal(), CacheOperationStatus.MISS.attributes); | 162 | 163 |
| 163 | | - var allocatorStats = new PooledByteBufAllocatorStats(RangeEntryCacheImpl.ALLOCATOR); | | 164 | + var allocatorStats = new ByteBufAllocatorStats( | | 165 | + PulsarByteBufAllocator.getAllocatorMetric(ML_CACHE_ALLOCATOR_NAME)); | 164 | 166 | cachePoolActiveAllocationCounter.record(allocatorStats.activeAllocationsSmall, PoolArenaType.SMALL.attributes); | 165 | 167 | cachePoolActiveAllocationCounter.record(allocatorStats.activeAllocationsNormal, | 166 | 168 | PoolArenaType.NORMAL.attributes); | |
Collapse file Copy file name to clipboardExpand all lines: managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/cache/RangeEntryCacheImpl.java +4-13Lines changed: 4 additions & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 21 | 21 | import static com.google.common.base.Preconditions.checkArgument; | 22 | 22 | import static java.util.Objects.requireNonNull; | 23 | 23 | import static org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl.createManagedLedgerException; | | 24 | +import static org.apache.pulsar.common.allocator.PulsarByteBufAllocator.ML_CACHE_ALLOCATOR_NAME; | 24 | 25 | import com.google.common.annotations.VisibleForTesting; | 25 | 26 | import io.github.merlimat.slog.Logger; | 26 | 27 | import io.netty.buffer.ByteBuf; | 27 | | -import io.netty.buffer.PooledByteBufAllocator; | | 28 | +import io.netty.buffer.ByteBufAllocator; | 28 | 29 | import java.util.ArrayList; | 29 | 30 | import java.util.List; | 30 | 31 | import java.util.Optional; | | 49 | 50 | import org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl; | 50 | 51 | import org.apache.bookkeeper.mledger.intercept.ManagedLedgerInterceptor; | 51 | 52 | import org.apache.commons.lang3.tuple.Pair; | | 53 | +import org.apache.pulsar.common.allocator.PulsarByteBufAllocator; | 52 | 54 | import org.apache.pulsar.common.util.FutureUtil; | 53 | 55 |
| 54 | 56 | /** | 55 | 57 | * Cache data payload for entries of all ledgers. | 56 | 58 | */ | 57 | 59 | public class RangeEntryCacheImpl implements EntryCache { | 58 | | - /** | 59 | | - * The Netty allocator used when managedLedgerCacheCopyEntries=true. | 60 | | - */ | 61 | | - public static final PooledByteBufAllocator ALLOCATOR = new PooledByteBufAllocator(true, // preferDirect | 62 | | - 0, // nHeapArenas, | 63 | | - PooledByteBufAllocator.defaultNumDirectArena(), // nDirectArena | 64 | | - PooledByteBufAllocator.defaultPageSize(), // pageSize | 65 | | - PooledByteBufAllocator.defaultMaxOrder(), // maxOrder | 66 | | - PooledByteBufAllocator.defaultSmallCacheSize(), // smallCacheSize | 67 | | - PooledByteBufAllocator.defaultNormalCacheSize(), // normalCacheSize, | 68 | | - true // Use cache for all threads | 69 | | - ); | | 60 | + private static final ByteBufAllocator ALLOCATOR = PulsarByteBufAllocator.getOrCreate(ML_CACHE_ALLOCATOR_NAME); | 70 | 61 |
| 71 | 62 | /** | 72 | 63 | * Overhead per-entry to take into account the envelope. | |
Collapse file Copy file name to clipboardExpand all lines: managed-ledger/src/test/java/org/apache/bookkeeper/mledger/impl/cache/RangeEntryCacheImplTest.java +37Lines changed: 37 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | */ | 19 | 19 | package org.apache.bookkeeper.mledger.impl.cache; | 20 | 20 |
| | 21 | +import static org.apache.pulsar.common.allocator.PulsarByteBufAllocator.ML_CACHE_ALLOCATOR_NAME; | 21 | 22 | import static org.assertj.core.api.Assertions.assertThat; | 22 | 23 | import static org.mockito.ArgumentMatchers.any; | 23 | 24 | import static org.mockito.ArgumentMatchers.anyLong; | | 52 | 53 | import org.apache.bookkeeper.mledger.impl.ManagedLedgerFactoryMBeanImpl; | 53 | 54 | import org.apache.bookkeeper.mledger.impl.ManagedLedgerImpl; | 54 | 55 | import org.apache.bookkeeper.mledger.impl.ManagedLedgerMBeanImpl; | | 56 | +import org.apache.pulsar.common.allocator.PulsarByteBufAllocator; | 55 | 57 | import org.apache.pulsar.common.api.proto.MessageMetadata; | 56 | 58 | import org.apache.pulsar.common.protocol.Commands; | 57 | 59 | import org.testng.annotations.BeforeMethod; | @@ -208,6 +210,41 @@ public void testInsertReusesTheMessageMetadataTheEntryAlreadyCarries() { | 208 | 210 | cached.release(); | 209 | 211 | } | 210 | 212 |
| | 213 | + @Test | | 214 | + public void testCopiedEntryUsesRegisteredCacheAllocator() { | | 215 | + RangeEntryCacheImpl copyingCache = createRangeEntryCache(true); | | 216 | + ByteBuf source = Unpooled.buffer(16).writeLong(123L).writeLong(456L); | | 217 | + source.readLong(); | | 218 | + EntryImpl entry = EntryImpl.create(1, 50, source); | | 219 | + source.release(); | | 220 | + assertThat(PulsarByteBufAllocator.getOrCreate(ML_CACHE_ALLOCATOR_NAME)) | | 221 | + .isNotSameAs(PulsarByteBufAllocator.DEFAULT); | | 222 | + ByteBuf probe = PulsarByteBufAllocator.getOrCreate(ML_CACHE_ALLOCATOR_NAME).directBuffer(8, 8); | | 223 | + try { | | 224 | + assertThat(copyingCache.insert(entry)).isTrue(); | | 225 | + assertThat(entry.getDataBuffer().readerIndex()).isEqualTo(8); | | 226 | + ReferenceCountedEntry cached = copyingCache.getEntries().get(PositionFactory.create(1, 50)); | | 227 | + try { | | 228 | + assertThat(cached).isNotNull(); | | 229 | + ByteBuf copied = cached.getDataBuffer(); | | 230 | + assertThat(copied.isDirect()).isTrue(); | | 231 | + assertThat(copied.alloc()).isSameAs(probe.alloc()); | | 232 | + assertThat(copied.readableBytes()).isEqualTo(8); | | 233 | + assertThat(copied.getLong(copied.readerIndex())).isEqualTo(456L); | | 234 | + entry.getDataBuffer().setLong(8, 789L); | | 235 | + assertThat(copied.getLong(copied.readerIndex())).isEqualTo(456L); | | 236 | + } finally { | | 237 | + if (cached != null) { | | 238 | + cached.release(); | | 239 | + } | | 240 | + } | | 241 | + } finally { | | 242 | + probe.release(); | | 243 | + entry.release(); | | 244 | + copyingCache.clear(); | | 245 | + } | | 246 | + } | | 247 | + | 211 | 248 | @Test | 212 | 249 | public void testCachedEntryMetadataStaysReadableWhenEntriesAreCopied() { | 213 | 250 | RangeEntryCacheImpl copyingCache = createRangeEntryCache(true); | |
Collapse file Copy file name to clipboardExpand all lines: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/BrokerStatsBase.java +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -110,11 +110,10 @@ public StreamingOutput getTopics2() throws Exception { | 110 | 110 |
| 111 | 111 | @GET | 112 | 112 | @Path("/allocator-stats/{allocator}") | 113 | | - @Operation(summary = "Get the stats for the Netty allocator. Available allocators are 'default' and 'ml-cache'") | | 113 | + @Operation(summary = "Get stats for a registered Netty allocator, such as 'default' or 'ml-cache'") | 114 | 114 | @ApiResponses(value = { | 115 | 115 | @ApiResponse(responseCode = "200", | 116 | | - description = "Get the stats for the Netty allocator. Available allocators are 'default' " | 117 | | - + "and 'ml-cache'", | | 116 | + description = "Get stats for a registered Netty allocator, such as 'default' or 'ml-cache'", | 118 | 117 | content = @Content(schema = @Schema(implementation = AllocatorStats.class))), | 119 | 118 | @ApiResponse(responseCode = "403", description = "Don't have admin permission") }) | 120 | 119 | public AllocatorStats getAllocatorStats(@PathParam("allocator") String allocatorName) throws Exception { | |
Collapse file Copy file name to clipboardExpand all lines: pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/AllocatorStatsGenerator.java +2-7Lines changed: 2 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 28 | 28 | import java.util.ArrayList; | 29 | 29 | import java.util.List; | 30 | 30 | import java.util.stream.Collectors; | 31 | | -import org.apache.bookkeeper.mledger.impl.cache.RangeEntryCacheImpl; | 32 | 31 | import org.apache.pulsar.common.allocator.PulsarByteBufAllocator; | 33 | 32 | import org.apache.pulsar.common.stats.AllocatorStats; | 34 | 33 | import org.apache.pulsar.common.stats.AllocatorStats.PoolArenaStats; | | 38 | 37 |
| 39 | 38 | public class AllocatorStatsGenerator { | 40 | 39 | public static AllocatorStats generate(String allocatorName) { | 41 | | - ByteBufAllocatorMetric metric; | 42 | | - if ("default".equals(allocatorName)) { | 43 | | - metric = PulsarByteBufAllocator.getDefaultAllocatorMetric(); | 44 | | - } else if ("ml-cache".equals(allocatorName)) { | 45 | | - metric = RangeEntryCacheImpl.ALLOCATOR.metric(); | 46 | | - } else { | | 40 | + ByteBufAllocatorMetric metric = PulsarByteBufAllocator.getAllocatorMetric(allocatorName); | | 41 | + if (metric == null) { | 47 | 42 | throw new IllegalArgumentException("Invalid allocator name : " + allocatorName); | 48 | 43 | } | 49 | 44 |
| |
Collapse file Copy file name to clipboardExpand all lines: pulsar-broker/src/main/java/org/apache/pulsar/broker/stats/metrics/ManagedLedgerCacheMetrics.java +5-3Lines changed: 5 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | */ | 19 | 19 | package org.apache.pulsar.broker.stats.metrics; | 20 | 20 |
| | 21 | +import static org.apache.pulsar.common.allocator.PulsarByteBufAllocator.ML_CACHE_ALLOCATOR_NAME; | 21 | 22 | import java.util.ArrayList; | 22 | 23 | import java.util.List; | 23 | 24 | import org.apache.bookkeeper.mledger.ManagedLedgerFactoryMXBean; | 24 | | -import org.apache.bookkeeper.mledger.impl.cache.PooledByteBufAllocatorStats; | 25 | | -import org.apache.bookkeeper.mledger.impl.cache.RangeEntryCacheImpl; | 26 | 25 | import org.apache.pulsar.broker.PulsarService; | | 26 | +import org.apache.pulsar.common.allocator.ByteBufAllocatorStats; | | 27 | +import org.apache.pulsar.common.allocator.PulsarByteBufAllocator; | 27 | 28 | import org.apache.pulsar.common.stats.Metrics; | 28 | 29 |
| 29 | 30 | public class ManagedLedgerCacheMetrics extends AbstractMetrics { | @@ -54,7 +55,8 @@ public synchronized List<Metrics> generate() { | 54 | 55 | m.put("brk_ml_cache_hits_throughput", mlCacheStats.getCacheHitsThroughput()); | 55 | 56 | m.put("brk_ml_cache_misses_throughput", mlCacheStats.getCacheMissesThroughput()); | 56 | 57 |
| 57 | | - var allocatorStats = new PooledByteBufAllocatorStats(RangeEntryCacheImpl.ALLOCATOR); | | 58 | + var allocatorStats = new ByteBufAllocatorStats( | | 59 | + PulsarByteBufAllocator.getAllocatorMetric(ML_CACHE_ALLOCATOR_NAME)); | 58 | 60 | m.put("brk_ml_cache_pool_allocated", allocatorStats.totalAllocated); | 59 | 61 | m.put("brk_ml_cache_pool_used", allocatorStats.totalUsed); | 60 | 62 | m.put("brk_ml_cache_pool_active_allocations", allocatorStats.activeAllocations); | |
Collapse file Copy file name to clipboardExpand all lines: pulsar-broker/src/test/java/org/apache/pulsar/broker/stats/AllocatorStatsGeneratorTest.java +26-2Lines changed: 26 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | */ | 19 | 19 | package org.apache.pulsar.broker.stats; | 20 | 20 |
| | 21 | +import static org.apache.pulsar.common.allocator.PulsarByteBufAllocator.DEFAULT_ALLOCATOR_NAME; | | 22 | +import static org.apache.pulsar.common.allocator.PulsarByteBufAllocator.ML_CACHE_ALLOCATOR_NAME; | 21 | 23 | import static org.assertj.core.api.Assertions.assertThat; | | 24 | +import static org.assertj.core.api.Assertions.assertThatThrownBy; | 22 | 25 | import io.netty.buffer.AdaptiveByteBufAllocator; | 23 | 26 | import io.netty.buffer.ByteBuf; | 24 | 27 | import io.netty.buffer.PooledByteBufAllocator; | | 29 | 32 | import org.testng.annotations.Test; | 30 | 33 |
| 31 | 34 | public class AllocatorStatsGeneratorTest { | | 35 | + @Test | | 36 | + public void testUnknownAllocatorIsNotCreated() { | | 37 | + assertThatThrownBy(() -> AllocatorStatsGenerator.generate("unknown-allocator")) | | 38 | + .isInstanceOf(IllegalArgumentException.class).hasMessageContaining("unknown-allocator"); | | 39 | + } | | 40 | + | | 41 | + @Test | | 42 | + public void testRegisteredCacheAllocatorMetrics() { | | 43 | + var allocator = PulsarByteBufAllocator.getOrCreate(ML_CACHE_ALLOCATOR_NAME); | | 44 | + ByteBuf buffer = allocator.directBuffer(128); | | 45 | + try { | | 46 | + var metric = PulsarByteBufAllocator.getAllocatorMetric(ML_CACHE_ALLOCATOR_NAME); | | 47 | + AllocatorStats stats = AllocatorStatsGenerator.generate(ML_CACHE_ALLOCATOR_NAME); | | 48 | + assertThat(stats.usedDirectMemory).isEqualTo(metric.usedDirectMemory()).isGreaterThanOrEqualTo(128); | | 49 | + assertThat(metric).isNotSameAs(PulsarByteBufAllocator.getDefaultAllocatorMetric()); | | 50 | + } finally { | | 51 | + buffer.release(); | | 52 | + } | | 53 | + } | | 54 | + | 32 | 55 | @Test | 33 | 56 | public void testAdaptiveMetrics() { | 34 | 57 | AdaptiveByteBufAllocator allocator = new AdaptiveByteBufAllocator(true); | 35 | 58 | ByteBuf direct = allocator.directBuffer(128); | 36 | 59 | ByteBuf heap = allocator.heapBuffer(128); | 37 | 60 | try (MockedStatic<PulsarByteBufAllocator> mocked = Mockito.mockStatic(PulsarByteBufAllocator.class)) { | 38 | | - mocked.when(PulsarByteBufAllocator::getDefaultAllocatorMetric).thenReturn(allocator.metric()); | 39 | | - AllocatorStats stats = AllocatorStatsGenerator.generate("default"); | | 61 | + mocked.when(() -> PulsarByteBufAllocator.getAllocatorMetric(DEFAULT_ALLOCATOR_NAME)) | | 62 | + .thenReturn(allocator.metric()); | | 63 | + AllocatorStats stats = AllocatorStatsGenerator.generate(DEFAULT_ALLOCATOR_NAME); | 40 | 64 | assertThat(stats.usedDirectMemory).isEqualTo(allocator.usedDirectMemory()).isGreaterThanOrEqualTo(128); | 41 | 65 | assertThat(stats.usedHeapMemory).isEqualTo(allocator.usedHeapMemory()).isGreaterThanOrEqualTo(128); | 42 | 66 | assertThat(stats.directArenas).isEmpty(); | |
Collapse file Copy file name to clipboardExpand all lines: pulsar-common/src/main/java/org/apache/pulsar/common/allocator/ByteBufAllocatorStats.java +26-15Lines changed: 26 additions & 15 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | * specific language governing permissions and limitations | 17 | 17 | * under the License. | 18 | 18 | */ | 19 | | -package org.apache.bookkeeper.mledger.impl.cache; | | 19 | +package org.apache.pulsar.common.allocator; | 20 | 20 |
| 21 | | -import io.netty.buffer.PooledByteBufAllocator; | | 21 | +import io.netty.buffer.ByteBufAllocatorMetric; | | 22 | +import io.netty.buffer.PooledByteBufAllocatorMetric; | 22 | 23 | import lombok.Value; | 23 | 24 |
| | 25 | +/** Snapshot of direct allocation statistics; unsupported allocation counts are {@code -1}. */ | 24 | 26 | @Value | 25 | | -public class PooledByteBufAllocatorStats { | | 27 | +public class ByteBufAllocatorStats { | 26 | 28 |
| 27 | 29 | public long activeAllocations; | 28 | 30 | public long activeAllocationsSmall; | @@ -32,29 +34,38 @@ public class PooledByteBufAllocatorStats { | 32 | 34 | public long totalAllocated; | 33 | 35 | public long totalUsed; | 34 | 36 |
| 35 | | - public PooledByteBufAllocatorStats(PooledByteBufAllocator allocator) { | | 37 | + public ByteBufAllocatorStats(ByteBufAllocatorMetric metric) { | 36 | 38 | long activeAllocations = 0; | 37 | 39 | long activeAllocationsSmall = 0; | 38 | 40 | long activeAllocationsNormal = 0; | 39 | 41 | long activeAllocationsHuge = 0; | 40 | 42 | long totalAllocated = 0; | 41 | 43 | long totalUsed = 0; | 42 | 44 |
| 43 | | - for (var arena : allocator.metric().directArenas()) { | 44 | | - activeAllocations += arena.numActiveAllocations(); | 45 | | - activeAllocationsSmall += arena.numActiveSmallAllocations(); | 46 | | - activeAllocationsNormal += arena.numActiveNormalAllocations(); | 47 | | - activeAllocationsHuge += arena.numActiveHugeAllocations(); | | 45 | + if (metric instanceof PooledByteBufAllocatorMetric pooledMetric) { | | 46 | + for (var arena : pooledMetric.directArenas()) { | | 47 | + activeAllocations += arena.numActiveAllocations(); | | 48 | + activeAllocationsSmall += arena.numActiveSmallAllocations(); | | 49 | + activeAllocationsNormal += arena.numActiveNormalAllocations(); | | 50 | + activeAllocationsHuge += arena.numActiveHugeAllocations(); | 48 | 51 |
| 49 | | - for (var list : arena.chunkLists()) { | 50 | | - for (var chunk : list) { | 51 | | - int size = chunk.chunkSize(); | 52 | | - int used = size - chunk.freeBytes(); | | 52 | + for (var list : arena.chunkLists()) { | | 53 | + for (var chunk : list) { | | 54 | + int size = chunk.chunkSize(); | | 55 | + int used = size - chunk.freeBytes(); | 53 | 56 |
| 54 | | - totalAllocated += size; | 55 | | - totalUsed += used; | | 57 | + totalAllocated += size; | | 58 | + totalUsed += used; | | 59 | + } | 56 | 60 | } | 57 | 61 | } | | 62 | + } else if (metric != null) { | | 63 | + totalAllocated = metric.usedDirectMemory(); | | 64 | + totalUsed = totalAllocated; | | 65 | + activeAllocations = -1; | | 66 | + activeAllocationsSmall = -1; | | 67 | + activeAllocationsNormal = -1; | | 68 | + activeAllocationsHuge = -1; | 58 | 69 | } | 59 | 70 |
| 60 | 71 | this.activeAllocations = activeAllocations; | |
|