mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-08 05:27:33 +02:00
WIP
This commit is contained in:
parent
535afe2ecf
commit
248ea16762
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
# Introduction
|
||||
|
||||
Cyclone uses a concurrent mark-sweep garbage collection algorithm [described in detail here](Garbage-Collector.md). But there are still some basic improvements to mark-sweep that can be made. One such improvement suggested by the [Garbage Collection Handbook](#references) is lazy sweeping.
|
||||
Cyclone uses a concurrent mark-sweep garbage collection algorithm [described in detail here](Garbage-Collector.md). But there are still some basic improvements to the mark-sweep algorithm that can be made. One such improvement suggested by the [Garbage Collection Handbook](#references) is lazy sweeping.
|
||||
|
||||
The basic idea is that instead of having the collector thread sweep the entire heap at once when tracing is finished, each mutator thread will sweep its own heap incrementally as part of allocation. When no more free space is available to meet a request the allocator will check to see if there are unswept heap pages, and if so, the mutator will pick one and sweep it to free up space. This amortizes the cost of sweeping.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue