mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Added summary
This commit is contained in:
parent
3696b7e5e4
commit
5df57542f0
1 changed files with 6 additions and 0 deletions
|
@ -243,6 +243,12 @@ Under Cyclone's runtime each thread contains its own stack that is used for priv
|
|||
|
||||
Heap objects are not relocated, making it easier for the runtime to support native threads. In addition major GC uses a collector thread that executes asynchronously so application threads can continue to run concurrently even during collections.
|
||||
|
||||
In summary:
|
||||
|
||||
- All objects on the stack are collected using Cheney on the MTA, and the ones that survive are placed on the heap.
|
||||
- Heap objects are collected during Major GC using the DLG algorithm.
|
||||
- Heap collection runs on a separate thread in parallel with application threads.
|
||||
|
||||
### Major Garbage Collection Algorithm
|
||||
|
||||
Each object is marked with a specific color (white, gray, or black) that determines how it will be handled during a major collection. Major GC transitions through the following states:
|
||||
|
|
Loading…
Add table
Reference in a new issue