From 55125234bb095f10559ee99b6a2530b6e9678a1a Mon Sep 17 00:00:00 2001 From: Diogo Netto <61364108+d-netto@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:00:43 -0300 Subject: [PATCH] delete possibly stale reset_gc_stats (#55015) See discussion in https://github.com/JuliaLang/julia/issues/55014. Doesn't seem breaking, but I can close the PR if it is. Closes https://github.com/JuliaLang/julia/issues/55014. --- base/timing.jl | 1 - src/gc.c | 7 ------- 2 files changed, 8 deletions(-) diff --git a/base/timing.jl b/base/timing.jl index 4b14161aa89d23..bdbb32936b56fd 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 a3b18effc3b8ab..2b2c0f132f6221 100644 --- a/src/gc.c +++ b/src/gc.c @@ -3399,13 +3399,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 {