Skip to content

Commit

Permalink
delete possibly stale reset_gc_stats (JuliaLang#55015)
Browse files Browse the repository at this point in the history
See discussion in JuliaLang#55014.

Doesn't seem breaking, but I can close the PR if it is.

Closes JuliaLang#55014.
  • Loading branch information
d-netto committed Jul 4, 2024
1 parent abdd894 commit 6b0d990
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion base/timing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 6b0d990

Please sign in to comment.