Closed
Description
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.
/cc @RLH