Skip to content

Commit 2e3b7d8

Browse files
committed
Fixed L2-pool-related typos
1 parent c2ff370 commit 2e3b7d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/jvm/src/SegmentPool.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ internal actual object SegmentPool {
129129
.toIntOrNull()?.coerceAtLeast(0) ?: 0
130130

131131
private val SECOND_LEVEL_POOL_BUCKET_SIZE =
132-
(SECOND_LEVEL_POOL_TOTAL_SIZE / HASH_BUCKET_COUNT).coerceAtLeast(Segment.SIZE)
132+
(SECOND_LEVEL_POOL_TOTAL_SIZE / HASH_BUCKET_COUNT_L2).coerceAtLeast(Segment.SIZE)
133133

134134
/**
135135
* 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 {
185185

186186
@JvmStatic
187187
private fun takeL2(): Segment {
188-
val buckets = hashBuckets
188+
val buckets = hashBucketsL2
189189
var bucket = l2BucketId()
190190
var attempts = 0
191191
while (true) {

0 commit comments

Comments
 (0)