JDK-8292541 introduced JNI method Java_jdk_internal_platform_CgroupMetrics_getTotalMemorySize0. During the effort to backport it to jdk8u-dev, We have discovered that it can return an invalid value on x86 (32 bit) systems.
On a system with 7281311744 bytes of total memory the function would return: -1308622848 suggesting some overflow occurring.
This was caught with the tier1 test:
TestMemoryAwareness.testContainerMemExceedsPhysical.
See this discussion on GitHub for further details
https://github.com/openjdk/jdk8u-dev/pull/220#pullrequestreview-1247595245