![]() Blocking inside an interrupt is always unsafe and will lead to all kinds of bad behavior (even if it might appear to work sometimes). So disallow it, just like allocating heap memory inside an interrupt is not allowed. I suspect this will usually be caused by channel sends, like this: ch <- someValue The easy workaround is to make it a non-blocking send instead: select { case ch <- someValue: default: } This does mean the application might become a bit more complex to be able to deal with this case, but the alternative (undefined behavior) is IMHO much worse. |
||
---|---|---|
.. | ||
bytealg | ||
fuzz | ||
reflectlite | ||
task |