Quetion about the counter ZCounterOutOfMemory

Guoxiong Li lgxbslgx at gmail.com
Sun Mar 31 13:54:19 UTC 2024


Hi all,

I notice the ZCounterOutOfMemory is only increased in the call link
`ZAllocatorEden::alloc_object -> ZHeap::out_of_memory`.
Should we increase this counter in the method `ZAllocatorEden::alloc_tlab`
and other allocation methods such as
`ZAllocatorForRelocation::alloc_object`?
And should we move the incremental code like `ZHeap::out_of_memory` to
the allocation methods of `ZObjectAllocator`, which is a lower level class
for allocation.

Any ideas are appreciated. Thanks.

Best Regards,
-- Guoxiong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/zgc-dev/attachments/20240331/f6b4a672/attachment.htm>


More information about the zgc-dev mailing list