![]() Calling errors.New in an error path causes a heap allocation at an already unfortunate moment. It is more efficient to create these error values in globals and return these constant globals. If these errors are not used (because the related code was optimized out), the globals will also be optimized out. |
||
---|---|---|
.. | ||
arm.go | ||
cortexm.s | ||
semihosting.go |