Skip to content

Commit a025add

Browse files
committed
Make BrokenForSomeElements a non-value class
1 parent 70c9926 commit a025add

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: kotlinx-coroutines-core/common/src/internal/LockFreeLinkedList.common.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ internal open class LockFreeLinkedListHead: LockFreeLinkedListSegment(
3434
private val forbiddenBits: AtomicInt = atomic(0)
3535

3636
/**
37-
* Iterates over all non-removed elements in this list, skipping every node until (and including) [startAfter].
37+
* Iterates over all non-removed elements in this list, skipping every node until (and including) [startAfterIndex].
3838
*/
3939
inline fun forEach(
4040
forbidBitmask: Byte = 0,
@@ -172,8 +172,7 @@ private fun createSegment(id: Long, prev: LockFreeLinkedListSegment): LockFreeLi
172172

173173
private const val SEGMENT_SIZE = 8
174174

175-
@JvmInline
176-
private value class BrokenForSomeElements private constructor(val forbiddenBits: Byte) {
175+
private class BrokenForSomeElements private constructor(val forbiddenBits: Byte) {
177176
companion object {
178177
fun fromBitmask(forbiddenBits: Byte): BrokenForSomeElements? = when (forbiddenBits) {
179178
0.toByte() -> null // no one is forbidden

0 commit comments

Comments
 (0)