mirror of https://github.com/tinygo-org/tinygo.git
Browse Source
Previously, chansend and chanrecv allocated a heap object before blocking on a channel. This object was used to implement a linked list of goroutines blocked on the channel. The chansend and chanrecv now instead accept a buffer to store this object in as an argument. The compiler now creates a stack allocation for this object and passes it in.pull/1167/head
Jaden Weiss
5 years ago
committed by
Ayke
2 changed files with 19 additions and 7 deletions
Loading…
Reference in new issue