runtime: debug.FreeOSMemory not freeing memory #35858
Closed
Comments
I've uploaded a fix which I've confirmed resolves the issue. |
Change https://golang.org/cl/208960 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
At tip,
debug.FreeOSMemory
isn't doing what its documentation is saying it will do. Notably,HeapReleased
doesn't increase all the way toHeapIdle
. This failure is obvious in https://github.com/savalin/example/blob/master/main.go and this was discovered in investigating #35848.This is happening because the changes to
debug.FreeOSMemory
in the page allocator don't do the right thing. The fix is to reset the scavenger address, then scavenge.This may need to block the beta, but the fix is known and easy. I will put up a change ASAP.
CC @aclements @andybons
The text was updated successfully, but these errors were encountered: