Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

malloc from jl_gc_managed_malloc is not counted in the heap size. #136

Open
qinsoon opened this issue Feb 27, 2024 · 0 comments
Open

malloc from jl_gc_managed_malloc is not counted in the heap size. #136

qinsoon opened this issue Feb 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@qinsoon
Copy link
Member

qinsoon commented Feb 27, 2024

The bytes allocated by jl_gc_managed_malloc() in gc-common.c is counted in gc_num.malloc and gc_num.allocd, but it is not counted into MMTk heap.

https://github.com/mmtk/julia/blob/861f151c7fbec1d8431a804795bd3d3598b77e3b/src/gc-common.c#L760

We use JULIA_MALLOC_BYTES to count malloc bytes in functions like jl_gc_counted_malloc (in mmtk-gc.c, https://github.com/mmtk/julia/blob/861f151c7fbec1d8431a804795bd3d3598b77e3b/src/mmtk-gc.c#L380).

@qinsoon qinsoon added the bug Something isn't working label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant