On Thu, 1 Aug 2024 15:20:41 GMT, Chris Plummer <cjplum...@openjdk.org> wrote:
>> The alternative is of course to not burden the VM and heap dumpers with this >> but instead provide tooling to process a HPROF heap dump to zero the >> contents of Strings and other fields. > >> The alternative is of course to not burden the VM and heap dumpers with this >> but instead provide tooling to process a HPROF heap dump to zero the >> contents of Strings and other fields. > > That approach also has the added benefit of addressing this issue with heap > dumps produced SA, which is not being covered by this PR. > @plummercj - I'm sorry, can you expand this acronym for me? > > > heap dumps produced SA Serviceability Agent. It's a set of tools used to debug jvm and application issues. It can be run against a live process or a core file. It does things like produce stack traces and heap dumps, but also is good at inspecting the JVM and heap state. https://docs.oracle.com/en/java/javase/17/docs/specs/man/jhsdb.html See `jhsdb jmap -binaryheap`. The SA implementation for heap dumping is mostly in: `src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/HeapHprofBinWriter.java` ------------- PR Comment: https://git.openjdk.org/jdk/pull/20409#issuecomment-2263660657