mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-10 06:27:32 +02:00
Cleanup
This commit is contained in:
parent
b80066119a
commit
4b7707e898
1 changed files with 0 additions and 4 deletions
4
gc.c
4
gc.c
|
@ -1452,7 +1452,6 @@ void *collector_main(void *arg)
|
||||||
{
|
{
|
||||||
int stage;
|
int stage;
|
||||||
struct timespec tim;
|
struct timespec tim;
|
||||||
|
|
||||||
#ifdef DEBUG_THREADS
|
#ifdef DEBUG_THREADS
|
||||||
pthread_t tid = pthread_self();
|
pthread_t tid = pthread_self();
|
||||||
int sid = syscall(SYS_gettid);
|
int sid = syscall(SYS_gettid);
|
||||||
|
@ -1460,9 +1459,6 @@ void *collector_main(void *arg)
|
||||||
//printf("GC thread POSIX thread id is %d\n", tid);
|
//printf("GC thread POSIX thread id is %d\n", tid);
|
||||||
#endif
|
#endif
|
||||||
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 = ck_pr_load_int(&gc_stage);
|
stage = ck_pr_load_int(&gc_stage);
|
||||||
|
|
Loading…
Add table
Reference in a new issue