If the user calls runtime.GC or debug.FreeOSMemory, shrink stacks even if they are >
1/4 full. That way we can reclaim more space (at the expense of incurring runtime cost
when those goroutines start back up).
Maybe also if gp.blockedsince shows the goroutine has been blocked for a long time.
The text was updated successfully, but these errors were encountered:
I'm not in favour of this, I think it takes the vague promise that runtime.GC may free
up space on the heap (or not, that's a possibility) and replaces it with a stronger
promise that not only will runtime.GC free heap space, but it will free the maximum
space possible. I think that is not the sort of guarantee runtime.GC should be made to