--- old/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.hpp 2020-02-11 22:39:48.469979000 +0900 +++ new/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.hpp 2020-02-11 22:39:47.663930700 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -31,10 +31,15 @@ // Responsible for creating an hs_err.jfr file in exceptional shutdown situations (crash, OOM) // class JfrEmergencyDump : AllStatic { + private: + static char _saved_emergency_dump_path[JVM_MAXPATHLEN]; + public: + static void setup_emergency_dump_file_descriptor(); 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* build_dump_path(const char* repository_path, char* dump_path, size_t dump_path_len); + static const char* saved_emergency_dump_path() { return _saved_emergency_dump_path; } }; #endif // SHARE_JFR_RECORDER_REPOSITORY_JFREMERGENCYDUMP_HPP