Skip to content

Commit f81f80d

Browse files
committed
Remove GC print unless we use sanitizers on python.
1 parent 153b301 commit f81f80d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/loaders/py_loader/source/py_loader_impl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4302,7 +4302,9 @@ int py_loader_impl_destroy(loader_impl impl)
43024302

43034303
#if DEBUG_ENABLED
43044304
{
4305+
#if (defined(__ADDRESS_SANITIZER__) || defined(__MEMORY_SANITIZER__))
43054306
py_loader_impl_gc_print(py_impl);
4307+
#endif
43064308
Py_DecRef(py_impl->gc_set_debug);
43074309
Py_DecRef(py_impl->gc_debug_leak);
43084310
Py_DecRef(py_impl->gc_debug_stats);

0 commit comments

Comments
 (0)