Skip to content

Commit

Permalink
Fixed L2-pool-related typos
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhinkin committed Jul 15, 2024
1 parent c2ff370 commit 2e3b7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/jvm/src/SegmentPool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ internal actual object SegmentPool {
.toIntOrNull()?.coerceAtLeast(0) ?: 0

private val SECOND_LEVEL_POOL_BUCKET_SIZE =
(SECOND_LEVEL_POOL_TOTAL_SIZE / HASH_BUCKET_COUNT).coerceAtLeast(Segment.SIZE)
(SECOND_LEVEL_POOL_TOTAL_SIZE / HASH_BUCKET_COUNT_L2).coerceAtLeast(Segment.SIZE)

/**
* Hash buckets each contain a singly-linked list of segments. The index/key is a hash function of
Expand Down Expand Up @@ -185,7 +185,7 @@ internal actual object SegmentPool {

@JvmStatic
private fun takeL2(): Segment {
val buckets = hashBuckets
val buckets = hashBucketsL2
var bucket = l2BucketId()
var attempts = 0
while (true) {
Expand Down

0 comments on commit 2e3b7d8

Please sign in to comment.