RFR: JDK-8291878: NMT: Malloc limits [v2]
Thomas Stuefe
stuefe at openjdk.org
Tue Aug 23 19:31:37 UTC 2022
On Tue, 23 Aug 2022 16:19:35 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> Thomas Stuefe has updated the pull request incrementally with four additional commits since the last revision:
>>
>> - Update test/hotspot/jtreg/runtime/NMT/MallocLimitTest.java
>>
>> Co-authored-by: Aleksey Shipilëv <shade at redhat.com>
>> - Update src/hotspot/share/runtime/globals.hpp
>>
>> Co-authored-by: Aleksey Shipilëv <shade at redhat.com>
>> - Update src/hotspot/share/runtime/arguments.cpp
>>
>> Co-authored-by: Aleksey Shipilëv <shade at redhat.com>
>> - Update src/hotspot/share/runtime/arguments.cpp
>>
>> Co-authored-by: Aleksey Shipilëv <shade at redhat.com>
>
> src/hotspot/share/services/mallocTracker.cpp line 105:
>
>> 103:
>> 104: if (_total_limit > 0) {
>> 105: log_info(nmt)("MallocLimit: total limit: " SIZE_FORMAT, _total_limit);
>
> We have a few useful utilities for printing byte sizes, see `byte_size_in_proper_unit` and friends. I assume limits are expected to be in integer megabytes, so this might print something very large.
I did not know we have this. This is nice.
-------------
PR: https://git.openjdk.org/jdk/pull/9891
More information about the hotspot-runtime-dev
mailing list