mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 20:45:06 +02:00
Replace GC_DEBUG_PRINTFS with GC_DEBUG_TRACE
This commit is contained in:
parent
09807899d0
commit
bd74d90100
1 changed files with 2 additions and 2 deletions
4
gc.c
4
gc.c
|
@ -199,7 +199,7 @@ gc_heap *gc_heap_create(int heap_type, size_t size, size_t max_size,
|
||||||
free->next = next;
|
free->next = next;
|
||||||
next->size = size - gc_heap_align(gc_free_chunk_size);
|
next->size = size - gc_heap_align(gc_free_chunk_size);
|
||||||
next->next = NULL;
|
next->next = NULL;
|
||||||
#if GC_DEBUG_PRINTFS
|
#if GC_DEBUG_TRACE
|
||||||
fprintf(stderr, "DEBUG h->data addr: %p\n", &(h->data));
|
fprintf(stderr, "DEBUG h->data addr: %p\n", &(h->data));
|
||||||
fprintf(stderr, "DEBUG h->data addr: %p\n", h->data);
|
fprintf(stderr, "DEBUG h->data addr: %p\n", h->data);
|
||||||
fprintf(stderr, ("heap: %p-%p data: %p-%p size: %zu\n"),
|
fprintf(stderr, ("heap: %p-%p data: %p-%p size: %zu\n"),
|
||||||
|
@ -226,7 +226,7 @@ gc_heap *gc_heap_free(gc_heap *page, gc_heap *prev_page)
|
||||||
if (prev_page == NULL || page == NULL) {
|
if (prev_page == NULL || page == NULL) {
|
||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
#if GC_DEBUG_PRINTFS
|
#if GC_DEBUG_TRACE
|
||||||
fprintf(stderr, "DEBUG freeing heap page at addr: %p\n", page);
|
fprintf(stderr, "DEBUG freeing heap page at addr: %p\n", page);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue