Skip to content

runtime: recycle large stack spans #11466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aclements opened this issue Jun 29, 2015 · 1 comment
Closed

runtime: recycle large stack spans #11466

aclements opened this issue Jun 29, 2015 · 1 comment
Milestone

Comments

@aclements
Copy link
Member

https://golang.org/cl/11502 fixes a race in concurrent GC by delaying the freeing of large stack spans until the end of mark termination. However, it's fine to reuse this memory for other stacks, as long as the span itself remains a stack span. We do this for small stacks because there's already a cache free small stacks. For 1.6, consider adding a similar mechanism that lets us reuse large stack spans and free only those that remain unused at the end of mark termination.

@randall77 @rsc @RLH

@gopherbot
Copy link
Contributor

CL https://golang.org/cl/17814 mentions this issue.

@aclements aclements modified the milestones: Go1.6, Unplanned Dec 14, 2015
@golang golang locked and limited conversation to collaborators Dec 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants