You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MHeap_ReclaimList is asked to reclaim at least npages pages, but it counts the number of
spans reclaimed, not the number of pages reclaimed. The number of spans reclaimed is
strictly larger than the number of pages, so this is not wrong, but it may be forcing
more reclamation than was intended by the caller. The offending line is:
n += runtime·MSpan_Sweep(s, false);
This is adding a bool (whether the span was completely freed) to the page count n. It
should instead be adding the number of pages in the span, if MSpan_Sweep returns true.
This appears to have been introduced in Feb 2014 as part of the concurrent sweep code.
https://golang.org/cl/46430043
Working well enough for Go 1.4 but maybe worth tightening up for Go 1.5.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: