We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2ff370 commit 2e3b7d8Copy full SHA for 2e3b7d8
core/jvm/src/SegmentPool.kt
@@ -129,7 +129,7 @@ internal actual object SegmentPool {
129
.toIntOrNull()?.coerceAtLeast(0) ?: 0
130
131
private val SECOND_LEVEL_POOL_BUCKET_SIZE =
132
- (SECOND_LEVEL_POOL_TOTAL_SIZE / HASH_BUCKET_COUNT).coerceAtLeast(Segment.SIZE)
+ (SECOND_LEVEL_POOL_TOTAL_SIZE / HASH_BUCKET_COUNT_L2).coerceAtLeast(Segment.SIZE)
133
134
/**
135
* Hash buckets each contain a singly-linked list of segments. The index/key is a hash function of
@@ -185,7 +185,7 @@ internal actual object SegmentPool {
185
186
@JvmStatic
187
private fun takeL2(): Segment {
188
- val buckets = hashBuckets
+ val buckets = hashBucketsL2
189
var bucket = l2BucketId()
190
var attempts = 0
191
while (true) {
0 commit comments