From 0bbdd86f7ad541089b855754b0a5bcd6d7acd00b Mon Sep 17 00:00:00 2001 From: d-netto Date: Wed, 3 Jul 2024 13:34:36 -0300 Subject: [PATCH] delete possibly stale reset_gc_stats --- base/timing.jl | 1 - src/gc.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/base/timing.jl b/base/timing.jl index ecb67a2375d92..7e5891e2a3954 100644 --- a/base/timing.jl +++ b/base/timing.jl @@ -29,7 +29,6 @@ struct GC_Num end gc_num() = ccall(:jl_gc_num, GC_Num, ()) -reset_gc_stats() = ccall(:jl_gc_reset_stats, Cvoid, ()) # This type is to represent differences in the counters, so fields may be negative struct GC_Diff diff --git a/src/gc.c b/src/gc.c index 7158958aba786..c8d8d45bd44be 100644 --- a/src/gc.c +++ b/src/gc.c @@ -3400,13 +3400,6 @@ JL_DLLEXPORT jl_gc_num_t jl_gc_num(void) return num; } -JL_DLLEXPORT void jl_gc_reset_stats(void) -{ - gc_num.max_pause = 0; - gc_num.max_memory = 0; - gc_num.max_time_to_safepoint = 0; -} - // TODO: these were supposed to be thread local JL_DLLEXPORT int64_t jl_gc_diff_total_bytes(void) JL_NOTSAFEPOINT {