@@ -2030,7 +2030,7 @@ internal open class BufferedChannel<E>(
2030
2030
// The cell stores a buffered element.
2031
2031
state == = BUFFERED -> {
2032
2032
// Is the cell already covered by a receiver?
2033
- if (globalIndex < receiversCounter) return
2033
+ if (globalIndex < receiversCounter) break @traverse
2034
2034
// Update the cell state to `CHANNEL_CLOSED`.
2035
2035
if (segment.casState(index, state, CHANNEL_CLOSED )) {
2036
2036
// If `onUndeliveredElement` lambda is non-null, call it.
@@ -2057,7 +2057,7 @@ internal open class BufferedChannel<E>(
2057
2057
// The cell stores a suspended waiter.
2058
2058
state is Waiter || state is WaiterEB -> {
2059
2059
// Is the cell already covered by a receiver?
2060
- if (globalIndex < receiversCounter) return
2060
+ if (globalIndex < receiversCounter) break @traverse
2061
2061
// Obtain the sender.
2062
2062
val sender: Waiter = if (state is WaiterEB ) state.waiter
2063
2063
else state as Waiter
@@ -2908,8 +2908,7 @@ private val RESUMING_BY_EB = Symbol("RESUMING_BY_EB")
2908
2908
private val POISONED = Symbol (" POISONED" )
2909
2909
// When the element is successfully transferred
2910
2910
// to a receiver, the cell changes to `DONE_RCV`.
2911
- @JvmField
2912
- internal val DONE_RCV = Symbol (" DONE_RCV" )
2911
+ private val DONE_RCV = Symbol (" DONE_RCV" )
2913
2912
// Cancelled sender.
2914
2913
private val INTERRUPTED_SEND = Symbol (" INTERRUPTED_SEND" )
2915
2914
// Cancelled receiver.
0 commit comments