File tree 2 files changed +3
-2
lines changed
kotlinx-coroutines-core/jvm/src
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ internal class ResizableAtomicArray<T>(initialLength: Int) {
15
15
@Volatile
16
16
private var array = AtomicReferenceArray <T >(initialLength)
17
17
18
- public fun length (): Int = array.length()
18
+ // for debug output
19
+ public fun currentLength (): Int = array.length()
19
20
20
21
public operator fun get (index : Int ): T ? {
21
22
assert { index >= 0 }
Original file line number Diff line number Diff line change @@ -524,7 +524,7 @@ internal class CoroutineScheduler(
524
524
var dormant = 0
525
525
var terminated = 0
526
526
val queueSizes = arrayListOf<String >()
527
- for (index in 1 until workers.length ()) {
527
+ for (index in 1 until workers.currentLength ()) {
528
528
val worker = workers[index] ? : continue
529
529
val queueSize = worker.localQueue.size
530
530
when (worker.state) {
You can’t perform that action at this time.
0 commit comments