-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only quarantine garbage-collected objects
Summary: Testing with EagerGCProbability=1 is *really* slow, and lots of tests time out. The biggest cost is quarantine; after each gc cycle, we turn all free objects into Holes, to maximise bug-detection. This makes the heap grow very rapidly, which makes heap-scanning very expensive. This changes the collector to only quarantine gc-collected objects, instead of all free objects. Gc-collected objects would have been leaked anyway, so this limits heap growth to no worse than without gc. Also, don't trigger "eager" gc cycles on free operations. Only do it for allocations. Reviewed By: ricklavoie Differential Revision: D2765347 fb-gh-sync-id: 77554d7d6542d63d90b1c1387fb971ad6e1b3aee
- Loading branch information
1 parent
606b1f2
commit bbbe77d
Showing
4 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters