Skip to content

Commit 82a15d5

Browse files
d-nettoudesou
authored andcommitted
only update fragmentation data for pages that are not lazily freed
1 parent 1ea4941 commit 82a15d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gc-stock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,7 @@ static void gc_sweep_page(gc_page_profiler_serializer_t *s, jl_gc_pool_t *p, jl_
957957

958958
done:
959959
if (re_use_page) {
960+
gc_update_page_fragmentation_data(pg);
960961
push_lf_back(allocd, pg);
961962
}
962963
else {
@@ -965,7 +966,6 @@ static void gc_sweep_page(gc_page_profiler_serializer_t *s, jl_gc_pool_t *p, jl_
965966
push_lf_back(&global_page_pool_lazily_freed, pg);
966967
}
967968
gc_page_profile_write_to_file(s);
968-
gc_update_page_fragmentation_data(pg);
969969
gc_time_count_page(freedall, pg_skpd);
970970
jl_ptls_t ptls = jl_current_task->ptls;
971971
// Note that we aggregate the `pool_live_bytes` over all threads before returning this

0 commit comments

Comments
 (0)