Descriptionruntime: implement runtime.SysUnused on FreeBSD
madvise was missing so implement it in assembler. This change
needs to be extended to the other BSD variantes (Net and Open)
Without this change the scavenger will attempt to pass memory back
to the operating system when it has become idle, but the memory is
not returned and for long running Go processes the total memory used
can grow until OOM occurs.
I have only been able to test the code on FreeBSD AMD64. The ARM
platforms needs testing.
Patch Set 1 #Patch Set 2 : diff -r 6a42774d38e5 https://code.google.com/p/go #Patch Set 3 : diff -r 6a42774d38e5 https://code.google.com/p/go #
Total comments: 3
Patch Set 4 : diff -r f2755950769b https://code.google.com/p/go #
Total comments: 1
Patch Set 5 : diff -r f2755950769b https://code.google.com/p/go #
MessagesTotal messages: 21
|