RFR: 8365606: Container code should not be using jlong/julong [v2]

Severin Gehwolf sgehwolf at openjdk.org
Mon Nov 10 13:50:29 UTC 2025


On Tue, 28 Oct 2025 09:26:09 GMT, Casper Norrbin <cnorrbin at openjdk.org> wrote:

>> Severin Gehwolf has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:
>> 
>>  - Merge branch 'master' into jdk-8365606-jlong-julong-refactor
>>  - Fix print_container_info output
>>  - whitespace clean-ups and other small fixes
>>  - Fix log format in container macro and scanf format
>>  - Fix duplicate include in osContainer_linux
>>  - 8365606: Container code should not be using jlong/julong
>
> src/hotspot/os/linux/cgroupV1Subsystem_linux.cpp line 465:
> 
>> 463:   // negative value as a large unsiged int
>> 464:   if (!reader()->read_number("/cpu.cfs_quota_us", quota)) {
>> 465:     log_trace(os, container)("CPU Quota failed: -2");
> 
> Do we need to keep the `-2` here? Or could we perhaps change to a better message?

I've dropped `: -2` suffix now.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/27743#discussion_r2510649413


More information about the hotspot-jfr-dev mailing list