mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Refactoring
This commit is contained in:
parent
d50ae96505
commit
65e2a1a18b
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ static void Cyc_heap_init(long heap_size)
|
||||||
printf("main: Allocating and initializing heap...\n");
|
printf("main: Allocating and initializing heap...\n");
|
||||||
#endif
|
#endif
|
||||||
gc_init_heap(heap_size);
|
gc_init_heap(heap_size);
|
||||||
gc_init_mutators();
|
gc_initialize();
|
||||||
gc_start_collector();
|
gc_start_collector();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ void **vpbuffer_add(void **buf, int *len, int i, void *obj);
|
||||||
void vpbuffer_free(void **buf);
|
void vpbuffer_free(void **buf);
|
||||||
|
|
||||||
/* GC prototypes */
|
/* GC prototypes */
|
||||||
void gc_init_mutators();
|
void gc_initialize();
|
||||||
void gc_add_mutator(gc_thread_data *thd);
|
void gc_add_mutator(gc_thread_data *thd);
|
||||||
gc_heap *gc_heap_create(size_t size, size_t max_size, size_t chunk_size);
|
gc_heap *gc_heap_create(size_t size, size_t max_size, size_t chunk_size);
|
||||||
int gc_grow_heap(gc_heap *h, size_t size, size_t chunk_size);
|
int gc_grow_heap(gc_heap *h, size_t size, size_t chunk_size);
|
||||||
|
|
Loading…
Add table
Reference in a new issue