From c9af8a32a05b26d45c5c8967902b3a724f3c1be6 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 28 Dec 2021 17:58:39 +0900 Subject: `USE_RUBY_DEBUG_LOG` doesn't check `RUBY_DEVEL` `USE_RUBY_DEBUG_LOG` was only defined when `RUBY_DEVEL` is defined. This patch removes this dependency (`USE_RUBY_DEBUG_LOG` is defined independently from `RUBY_DEVEL`). Do not commit a patch which enables `USE_RUBY_DEBUG_LOG`. --- transient_heap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'transient_heap.c') diff --git a/transient_heap.c b/transient_heap.c index c3df263491..ba6f87aa69 100644 --- a/transient_heap.c +++ b/transient_heap.c @@ -748,7 +748,7 @@ transient_heap_block_evacuate(struct transient_heap* theap, struct transient_hea } } -#if defined(USE_RUBY_DEBUG_LOG) && USE_RUBY_DEBUG_LOG +#if USE_RUBY_DEBUG_LOG static const char * transient_heap_status_cstr(enum transient_heap_status status) { @@ -964,8 +964,6 @@ void rb_transient_heap_finish_marking(void) { ASSERT_vm_locking(); - RUBY_DEBUG_LOG(""); - struct transient_heap* theap = transient_heap_get(); RUBY_DEBUG_LOG("objects:%d, marked:%d", -- cgit v1.2.1