RFR: 8300659: Refactor TestMemoryAwareness to use WhiteBox api for host values [v3]

Severin Gehwolf sgehwolf at openjdk.org
Tue Jan 24 14:30:33 UTC 2023


> Please review this refactoring of a container test. It now uses WhiteBox to retrieve the host values it asserts for. In terms of functionality this is basically a no-op except for the now more precise assertion on systems with swap accounting disabled at the kernel level.
> 
> *Testing*
> - [x] Container tests on Linux x86_64 cgv1 and cgv2
> - [x] Container tests on Linux x86_64 cgv1 and cgv2 on systems with swapaccount=0
> - [x] GHA in progress 
> 
> Thoughts?

Severin Gehwolf has updated the pull request incrementally with one additional commit since the last revision:

  Rename to hostPhysicalMemory/Swap

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/12097/files
  - new: https://git.openjdk.org/jdk/pull/12097/files/2f8225e5..06ab3d80

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12097&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12097&range=01-02

  Stats: 8 lines in 3 files changed: 0 ins; 0 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/12097.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12097/head:pull/12097

PR: https://git.openjdk.org/jdk/pull/12097


More information about the serviceability-dev mailing list