@@ -1151,8 +1151,6 @@ public open class JobSupport constructor(active: Boolean) : Job, ChildJob, Paren
1151
1151
override fun invoke (cause : Throwable ? ) {
1152
1152
parent.continueCompleting(state, child, proposedUpdate)
1153
1153
}
1154
- override fun toString (): String =
1155
- " ChildCompletion[$child , $proposedUpdate ]"
1156
1154
}
1157
1155
1158
1156
private class AwaitContinuation <T >(
@@ -1350,6 +1348,7 @@ internal abstract class JobNode<out J : Job>(
1350
1348
override val isActive: Boolean get() = true
1351
1349
override val list: NodeList ? get() = null
1352
1350
override fun dispose () = (job as JobSupport ).removeNode(this )
1351
+ override fun toString () = " $classSimpleName @$hexAddress [job@${job.hexAddress} ]"
1353
1352
}
1354
1353
1355
1354
internal class NodeList : LockFreeLinkedListHead (), Incomplete {
@@ -1384,15 +1383,13 @@ private class InvokeOnCompletion(
1384
1383
private val handler : CompletionHandler
1385
1384
) : JobNode<Job>(job) {
1386
1385
override fun invoke (cause : Throwable ? ) = handler.invoke(cause)
1387
- override fun toString () = " InvokeOnCompletion[$classSimpleName @$hexAddress ]"
1388
1386
}
1389
1387
1390
1388
private class ResumeOnCompletion (
1391
1389
job : Job ,
1392
1390
private val continuation : Continuation <Unit >
1393
1391
) : JobNode<Job>(job) {
1394
1392
override fun invoke (cause : Throwable ? ) = continuation.resume(Unit )
1395
- override fun toString () = " ResumeOnCompletion[$continuation ]"
1396
1393
}
1397
1394
1398
1395
private class ResumeAwaitOnCompletion <T >(
@@ -1411,15 +1408,13 @@ private class ResumeAwaitOnCompletion<T>(
1411
1408
continuation.resume(state.unboxState() as T )
1412
1409
}
1413
1410
}
1414
- override fun toString () = " ResumeAwaitOnCompletion[$continuation ]"
1415
1411
}
1416
1412
1417
1413
internal class DisposeOnCompletion (
1418
1414
job : Job ,
1419
1415
private val handle : DisposableHandle
1420
1416
) : JobNode<Job>(job) {
1421
1417
override fun invoke (cause : Throwable ? ) = handle.dispose()
1422
- override fun toString (): String = " DisposeOnCompletion[$handle ]"
1423
1418
}
1424
1419
1425
1420
private class SelectJoinOnCompletion <R >(
@@ -1431,7 +1426,6 @@ private class SelectJoinOnCompletion<R>(
1431
1426
if (select.trySelect())
1432
1427
block.startCoroutineCancellable(select.completion)
1433
1428
}
1434
- override fun toString (): String = " SelectJoinOnCompletion[$select ]"
1435
1429
}
1436
1430
1437
1431
private class SelectAwaitOnCompletion <T , R >(
@@ -1443,7 +1437,6 @@ private class SelectAwaitOnCompletion<T, R>(
1443
1437
if (select.trySelect())
1444
1438
job.selectAwaitCompletion(select, block)
1445
1439
}
1446
- override fun toString (): String = " SelectAwaitOnCompletion[$select ]"
1447
1440
}
1448
1441
1449
1442
// -------- invokeOnCancellation nodes
@@ -1463,7 +1456,6 @@ private class InvokeOnCancelling(
1463
1456
override fun invoke (cause : Throwable ? ) {
1464
1457
if (_invoked .compareAndSet(0 , 1 )) handler.invoke(cause)
1465
1458
}
1466
- override fun toString () = " InvokeOnCancelling[$classSimpleName @$hexAddress ]"
1467
1459
}
1468
1460
1469
1461
internal class ChildHandleNode (
@@ -1472,7 +1464,6 @@ internal class ChildHandleNode(
1472
1464
) : JobCancellingNode<JobSupport>(parent), ChildHandle {
1473
1465
override fun invoke (cause : Throwable ? ) = childJob.parentCancelled(job)
1474
1466
override fun childCancelled (cause : Throwable ): Boolean = job.childCancelled(cause)
1475
- override fun toString (): String = " ChildHandle[$childJob ]"
1476
1467
}
1477
1468
1478
1469
// Same as ChildHandleNode, but for cancellable continuation
@@ -1483,7 +1474,5 @@ internal class ChildContinuation(
1483
1474
override fun invoke (cause : Throwable ? ) {
1484
1475
child.parentCancelled(child.getContinuationCancellationCause(job))
1485
1476
}
1486
- override fun toString (): String =
1487
- " ChildContinuation[$child ]"
1488
1477
}
1489
1478
0 commit comments