aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/chan.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2019-01-10 16:54:09 +0100
committerAyke van Laethem <[email protected]>2019-01-21 22:09:33 +0100
commit602c2647490fc2352ff283da59a6b537c8e8cacc (patch)
tree26aa64b18b69250ce3dc687920bb9de290c7a49a /src/runtime/chan.go
parent072ef603fe15088b1d1fd9b4b6c43aa80746d927 (diff)
downloadtinygo-602c2647490fc2352ff283da59a6b537c8e8cacc.tar.gz
tinygo-602c2647490fc2352ff283da59a6b537c8e8cacc.zip
all: rewrite goroutine lowering
Before this commit, goroutine support was spread through the compiler. This commit changes this support, so that the compiler itself only generates simple intrinsics and leaves the real support to a compiler pass that runs as one of the TinyGo-specific optimization passes. The biggest change, that was done together with the rewrite, was support for goroutines in WebAssembly for JavaScript. The challenge in JavaScript is that in general no blocking operations are allowed, which means that programs that call time.Sleep() but do not start goroutines also have to be scheduled by the scheduler.
Diffstat (limited to 'src/runtime/chan.go')
0 files changed, 0 insertions, 0 deletions