Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: free GC workbuf memory #19325
Currently GC workbufs are in off-heap memory that never gets freed. The memory allocated for these is (roughly) proportional to peak heap size, so applications that have temporary high peaks (such as during initialization) suffer from high RSS usage for the rest of the process' life time.
Unlike various other off-heap runtime structures, these would actually be pretty easy to free. We should do that. I think the only subtlety would be figuring out how many we want to keep, since we probably don't want to free all of the workbufs after every GC cycle.