-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The condition for requesting collections is replaced by requesting a collection if an allocation passes a tripwire. This tripwire is initially set at MIN_SPACE and is recalculated after each garbage collation as max(MIN_SPACE, |live data|). This avoids a potential issue with the old behavior where collections were trigged by allocating in the last 1 MB of previously allocated semispace, even if little garbage is being generated, or not collecting frequently enough if a period of low garbage generation is followed by a period of high garbage generation, affecting cache performance. Furthermore, garbage collections are only trigged by allocations in youngspace. Allocations in oldspace no longer trigger collections since oldspace collections are handled during a youngspace collection. Allocations in alwaysgcspace no longer trigger collections since collection of this space is handled outside of the main garbage collector. Some class arena member functions have the arena_ component removed as superfluous.
- Loading branch information
1 parent
c2e8094
commit c55f039
Showing
4 changed files
with
55 additions
and
67 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