runtime: avoid unnecessary work in allocSpanLocked #15226
[moved from #14921]
These two lines in "*mheap.allocSpanLocked" are (or hopefully will soon be) the most common source of writebarrierptr calls for which *dst == src.
(Line numbers from commit de7ee57.)
As @aclements notes, this might be best addressed by algorithmic improvements. If those assignments are doing nothing, probably lots of the surrounding code is either.
The text was updated successfully, but these errors were encountered: