[jdk11u-dev] RFR: 8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy [v7]

Severin Gehwolf sgehwolf at openjdk.java.net
Thu Mar 17 16:34:49 UTC 2022


On Wed, 16 Mar 2022 13:43:55 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

>> This is a followup backport for Cgroup v2 support.
>> 
>> The original patch does not apply cleanly, due to context differences and some of out-of-order backports, conflicts were resolved manually.
>> 
>> In additional:
>> 
>> 1) Include partial backport of JDK-8250627.
>>     - Renamed `Metrics.c` =>  `CgroupMetrics.c`
>>     - Added native method `isUseContainerSupport()` to `CgroupMetrics.java`
>>     - Return instance only if `isUseContainerSupport()` is enabled.
>>    
>> 2) Add `createTempDirectory()` method to `test/lib/jdk/test/lib/Utils.java` for `TestCgroupSubsystemController.java` test
>> 
>> 3) Add `import jdk.test.lib.process.OutputAnalyzer;` to `TestDockerMemoryMetrics.java`
>> 
>> Test:
>> 
>> - [x] jtreg containers/docker test on Ubuntu 20.04.4 LTS
>> - [x] jdk/internal/platform/cgroup on Ubuntu 20.04.4 LTS
>> - [x] jdk/internal/platform/docker on Ubuntu 20.04.4 LTS
>
> Zhengyu Gu has updated the pull request incrementally with 50 additional commits since the last revision:
> 
>  - Merge branch 'master' into backport-8231111-unified-hierarchy
>  - 8265343: Update Debian-based cross-compilation recipes
>    
>    Reviewed-by: stuefe
>    Backport-of: 7879adbe88ec54b8f5ac9543d80142bc1b12112b
>  - Merge
>  - 8275703: System.loadLibrary fails on Big Sur for libraries hidden from filesystem
>    
>    Reviewed-by: mbaesken
>    Backport-of: 6aa02d75d9f26f46fbdb54aef52cea3257aa7462
>  - 8281615: Deadlock caused by jdwp agent
>    
>    Backport-of: e1060bee2adb9f2e07ca09309d0f89132db30f28
>  - 8266251: compiler.inlining.InlineAccessors shouldn't do testing in driver VM
>    
>    Backport-of: 9605aeddee70ba4f3dba2ae2a3d100319164b03d
>  - 8231565: More node budget asserts in fuzzed tests
>    
>    Backport-of: 902858e3ceb43bf92ea9fa038b9edcf1ee0c48b5
>  - 8229499: Node budget assert in fuzzed test
>    
>    Reviewed-by: stuefe
>    Backport-of: 8275b17b07b1c15bde79b36b76ecbe3072db1e1a
>  - 8234605: C2 failed "assert(C->live_nodes() - live_at_begin <= 2 * _nodes_required) failed: Bad node estimate: actual = 208 >> request = 101"
>    
>    Backport-of: d19f2bdec01eb324d200f2144293d05ea310f9b8
>  - 8246741: NetworkInterface/UniqueMacAddressesTest: mac address uniqueness test failed
>    
>    Reviewed-by: mdoerr
>    Backport-of: f5d36e6c9470b1ac5326990b1c4fea80457c4ad6
>  - ... and 40 more: https://git.openjdk.java.net/jdk11u-dev/compare/191fbe46...7d276fe6

Something is wrong with this PR now. Says 376 changed files.

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

PR: https://git.openjdk.java.net/jdk11u-dev/pull/863


More information about the jdk-updates-dev mailing list