Skip to content

Commit 94ca34a

Browse files
drmeisteryitzchak
authored andcommitted
Turned off print statement for debugging
1 parent 250dd4d commit 94ca34a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/gctools/boehmGarbageCollection.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,13 +571,16 @@ void clasp_gc_registerRoots(void* rootsStart, size_t numberOfRoots) {
571571
//
572572
void* rootsEnd = (void*)((uintptr_t)rootsStart + numberOfRoots * sizeof(void*));
573573
if (rootsEnd != rootsStart) {
574-
printf("%s:%d:%s GC_add_roots %p to %p\n", __FILE__, __LINE__, __FUNCTION__, rootsStart, rootsEnd);
574+
#if 0
575+
// debugging
575576
void* base = GC_base(rootsStart);
577+
printf("%s:%d:%s GC_add_roots %p to %p\n", __FILE__, __LINE__, __FUNCTION__, rootsStart, rootsEnd);
576578
if (base) {
577579
printf(" ---- the roots are INSIDE GC managed memory - GC_add_roots is not needed\n");
578580
} else {
579581
printf(" ---- the roots are OUTSIDE GC managed memory - GC_add_roots is NEEDED\n");
580582
}
583+
#endif
581584
GC_add_roots(rootsStart, rootsEnd);
582585
}
583586
#endif

0 commit comments

Comments
 (0)