Skip to content

Commit 5e7d7c3

Browse files
authored
Remove last references to gc_num.since_sweep (#49628)
Commit ebc6776 removed the since_sweep field, but left two references to it, which makes Julia fail to build. This commit removes those references.
1 parent 1d361c0 commit 5e7d7c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gc-debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ void gc_time_sweep_pause(uint64_t gc_end_t, int64_t actual_allocd,
996996
"(%.2f ms in post_mark) %s | next in %" PRId64 " kB\n",
997997
jl_ns2ms(sweep_pause), live_bytes / 1024,
998998
gc_num.freed / 1024, estimate_freed / 1024,
999-
gc_num.freed - estimate_freed, pct, gc_num.since_sweep / 1024,
999+
gc_num.freed - estimate_freed, pct, gc_num.allocd / 1024,
10001000
jl_ns2ms(gc_postmark_end - gc_premark_end),
10011001
sweep_full ? "full" : "quick", -gc_num.allocd / 1024);
10021002
}

src/gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3347,7 +3347,7 @@ static int _jl_gc_collect(jl_ptls_t ptls, jl_gc_collection_t collection)
33473347
if (collection == JL_GC_AUTO) {
33483348
//If we aren't freeing enough or are seeing lots and lots of pointers let it increase faster
33493349
if (!not_freed_enough || large_frontier) {
3350-
int64_t tot = 2 * (live_bytes + gc_num.since_sweep) / 3;
3350+
int64_t tot = 2 * (live_bytes + gc_num.allocd) / 3;
33513351
if (gc_num.interval > tot) {
33523352
gc_num.interval = tot;
33533353
last_long_collect_interval = tot;

0 commit comments

Comments
 (0)