--- old/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.hpp 2019-11-01 13:33:17.942806500 +0900 +++ new/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.hpp 2019-11-01 13:33:17.305977700 +0900 @@ -26,15 +26,22 @@ #define SHARE_JFR_RECORDER_REPOSITORY_JFREMERGENCYDUMP_HPP #include "memory/allocation.hpp" +#include "jfr/utilities/jfrTypes.hpp" // // Responsible for creating an hs_err.jfr file in exceptional shutdown situations (crash, OOM) // class JfrEmergencyDump : AllStatic { + private: + static char _dump_path[]; + static const char* create_emergency_dump_path(); + static const char* create_emergency_chunk_path(const char* repository_path); + static fio_fd emergency_dump_file_descriptor(); public: static void on_vm_shutdown(bool exception_handler); static void on_vm_error(const char* repository_path); static const char* build_dump_path(const char* repository_path); + static const char* dump_path() { return _dump_path; } }; #endif // SHARE_JFR_RECORDER_REPOSITORY_JFREMERGENCYDUMP_HPP