Skip to content

Commit

Permalink
disable lazy freeing on _P32
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Jun 24, 2023
1 parent 40bfb24 commit 6821b4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,7 @@ static jl_taggedvalue_t **gc_sweep_page(jl_gc_pool_t *p, jl_gc_pagemeta_t **allo
int pg_skpd = 1;
if (!pg->has_marked) {
reuse_page = 0;
#ifdef _P64
// lazy version: (empty) if the whole page was already unused, free it (return it to the pool)
// eager version: (freedall) free page as soon as possible
// the eager one uses less memory.
Expand All @@ -1365,6 +1366,7 @@ static jl_taggedvalue_t **gc_sweep_page(jl_gc_pool_t *p, jl_gc_pagemeta_t **allo
lazy_freed_pages++;
freed_lazily = 1;
}
#endif
nfree = (GC_PAGE_SZ - GC_PAGE_OFFSET) / osize;
goto done;
}
Expand Down

0 comments on commit 6821b4d

Please sign in to comment.