Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hack] Added a check to decrease latest_heap_size
Summary: Because in some cases the heap can naturally decrease without garbage collection, latest_heap_size can be set to an abnormally high value, preventing GC from happening again. To fix this, we maintain a new invariant that the latest_heap_size must be at most the current used_heap_size. Thus, if the heap usage decreases after an oldify, latest_heap_size will also decrease, allowing garbage collection to occur again. Reviewed By: dabek Differential Revision: D3673343 fbshipit-source-id: 0948e95fb4b54da4ef6374e7323d68cf0afbec41
- Loading branch information