/ go Public
runtime: improve performance of channel closing without considering receivers #52067
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
closechanwill wake up all
senders(will trigger panic). And after
chansendacquires the lock again, if it judged that the channel has been closed, the panic will also be triggered, so when
chanrecvis performed, it can be skipped to judge whether there is a waiting sender, thereby improving performance.
The text was updated successfully, but these errors were encountered: