Adding -XX option for overwriting HeapDumpPath
Mariell Hoversholm
mariellh at spotify.com
Mon Nov 21 14:21:01 UTC 2022
Hi,
Would it be possible to add a new option for overwriting the file provided
by the `-XX:HeapDumpPath`[1] option?
Our use-case entails ensuring the created path is known beforehand to
running the JVM itself, and this is ensured by using `mktemp`[2]. In
short, because of how `mktemp` works, it will create an empty file to mark
it used; this fact is used to ensure there are no name collisions, as it
will simply re-generate a file name until it finds a non-existent file. We
would like to preserve this ability (meaning we cannot use the "unsafe"
option `--dry-run`).
Feel free to move me to another mailing list if I chose the wrong one. I
figure it was either this one or hotspot-runtime-dev at .
Cheers,
Mariell Hoversholm (she/they)
[1]:
https://github.com/openjdk/jdk17u/blob/d5fedc5b5fdfaa852894b6374873012645576f15/src/hotspot/share/runtime/globals.hpp#L537-L540
[2]: https://manpages.debian.org/buster/coreutils/mktemp.1.en.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-dev/attachments/20221121/e2e78c0e/attachment.htm>
More information about the hotspot-dev
mailing list