This is a port of #16301  to macOS.

System.map and System.dump_map are implemented using the macOS API and provide 
roughly the same information in the same format. Most of the heavy lifting was 
implemented by @tstuefe in https://github.com/openjdk/jdk/pull/16301 - this PR 
adds the macOS implementation and enables the common code for macOS 64 bit.

[Sample output (with NMT 
enabled)](https://github.com/user-attachments/files/16968316/vm_memory_map_87218.txt)

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

Commit messages:
 - fix whitepsace errors
 - initial release
 - fix whitespace
 - more test cleanup
 - refactor System.dump test for MacOS
 - Merge branch 'master' into pr_macos_system_dump
 - add macOS to liast of supposredt platforms
 - Merge branch 'openjdk:master' into pr_macos_system_dump
 - fix macOS System.map tests
 - fix merge error
 - ... and 8 more: https://git.openjdk.org/jdk/compare/363327e6...c6628d30

Changes: https://git.openjdk.org/jdk/pull/20953/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20953&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8319873
  Stats: 577 lines in 9 files changed: 499 ins; 40 del; 38 mod
  Patch: https://git.openjdk.org/jdk/pull/20953.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20953/head:pull/20953

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

Reply via email to