mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Debugging
This commit is contained in:
parent
ee8aec5887
commit
fc29269a26
2 changed files with 3 additions and 3 deletions
4
gc.c
4
gc.c
|
@ -325,7 +325,7 @@ size_t gc_sweep(gc_heap *h, size_t *sum_freed_ptr)
|
|||
size = gc_heap_align(gc_allocated_bytes(p));
|
||||
//fprintf(stdout, "check object %p, size = %d\n", p, size);
|
||||
|
||||
#if GC_DEBUG_CONCISE_PRINTFS
|
||||
//#if GC_DEBUG_CONCISE_PRINTFS
|
||||
// DEBUG
|
||||
if (!is_object_type(p))
|
||||
fprintf(stderr, "sweep: invalid object at %p", p);
|
||||
|
@ -334,7 +334,7 @@ size_t gc_sweep(gc_heap *h, size_t *sum_freed_ptr)
|
|||
if (r && ((char *)p) + size > (char *)r)
|
||||
fprintf(stderr, "sweep: bad size at %p + %d > %p", p, size, r);
|
||||
// END DEBUG
|
||||
#endif
|
||||
//#endif
|
||||
|
||||
if (mark(p) == gc_color_clear) {
|
||||
#if GC_DEBUG_PRINTFS
|
||||
|
|
|
@ -2784,7 +2784,7 @@ void GC(void *data, closure cont, object *args, int num_args)
|
|||
scani++;
|
||||
}
|
||||
|
||||
//fprintf(stdout, "DEBUG done minor GC, alloci = %d\n", alloci);
|
||||
fprintf(stdout, "DEBUG done minor GC, alloci = %d\n", alloci);
|
||||
|
||||
// // Check if we need to do a major GC
|
||||
// if (heap_grown) {
|
||||
|
|
Loading…
Add table
Reference in a new issue