mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-11 06:47:37 +02:00
Added notes
This commit is contained in:
parent
ded3f76cc8
commit
be9a07551e
1 changed files with 3 additions and 0 deletions
3
gc.c
3
gc.c
|
@ -1166,6 +1166,9 @@ void *collector_main(void *arg)
|
||||||
int stage;
|
int stage;
|
||||||
struct timespec tim;
|
struct timespec tim;
|
||||||
tim.tv_sec = 0;
|
tim.tv_sec = 0;
|
||||||
|
JAE TODO: this is still not good enough, seems memory grows still grows fast with this.
|
||||||
|
alternatively, may want to consider shrinking the heap if possible after a collection, if it is
|
||||||
|
sparse enough (would be difficult to do without relocations, though
|
||||||
tim.tv_nsec = 100 * NANOSECONDS_PER_MILLISECOND;
|
tim.tv_nsec = 100 * NANOSECONDS_PER_MILLISECOND;
|
||||||
while (1) {
|
while (1) {
|
||||||
stage = ATOMIC_GET(&gc_stage);
|
stage = ATOMIC_GET(&gc_stage);
|
||||||
|
|
Loading…
Add table
Reference in a new issue