Skip to content

Commit

Permalink
query page size
Browse files Browse the repository at this point in the history
  • Loading branch information
d-netto committed Apr 17, 2024
1 parent f61f92a commit 9217f81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gc-pages.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ JL_DLLEXPORT uint64_t jl_current_pg_count(void)
return (uint64_t)jl_atomic_load(&current_pg_count);
}

JL_DLLEXPORT uint64_t jl_get_pg_size(void)
{
return GC_PAGE_SZ;
}

void jl_gc_init_page(void)
{
if (GC_PAGE_SZ * block_pg_cnt < jl_page_size)
Expand Down

0 comments on commit 9217f81

Please sign in to comment.