mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Added notes
This commit is contained in:
parent
8bf20a05b5
commit
8945773e1c
1 changed files with 7 additions and 0 deletions
7
gc.c
7
gc.c
|
@ -1091,6 +1091,13 @@ void *collector_main(void *arg)
|
|||
// this is inefficient but it should be good enough to
|
||||
// at least stand up this collector. then we'll have to
|
||||
// come back and improve it
|
||||
//
|
||||
// some ideas:
|
||||
// - maybe check amount of free space in heap, and collect if less than a certain amount/percentage.
|
||||
// otherwise just sleep for awhile and check again.
|
||||
// once that works, might consider a way to let a mutator alert the collector that it should kick off
|
||||
// - after collection, maybe grow heap if usage is above a certain percentage
|
||||
//
|
||||
// sleep(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue