Descriptionruntime: freebsd: use MADV_FREE for runtime.SysUnused
On FreeBSD MADV_DONTNEED is non destructive when used with anonymous memory, ie, it only makes pages marked DONTNEED more likely to be paged out. MADV_FREE on FreeBSD is destructive and will uncommit memory pages. We already use MADV_FREE on darwin so it looks like a good starting point for FreeBSD.
Ref: http://www.gossamer-threads.com/lists/linux/kernel/608944
Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=752339#c6
Patch Set 1 #Patch Set 2 : diff -r 852ee39cc8c4 https://code.google.com/p/go #MessagesTotal messages: 3
|