RFR: 8337517: Redacted Heap Dumps

2024-07-31 Thread Henry Lin
Adds a command line option `-redact` to `jcmd`, `redact` to `jmap` and `-XX:+HeapDumpRedacted` enabling redacted heap dumps. When enabled, the output binary heap dump has zeroes written out in place of the original primitive values in the object fields. There is a new jtreg test `heapDumpRedact

Re: RFR: 8337517: Redacted Heap Dumps [v2]

2024-08-01 Thread Henry Lin
w jtreg test > `heapDumpRedactedTest.java` that tests that the fields are properly redacted. Henry Lin has updated the pull request incrementally with three additional commits since the last revision: - refactored redact conditional - format HeapDumpRedactedTest.java - Revert "add jmap