< prev index next >

src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2018, 2019, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 29,40 **** // // Responsible for creating an hs_err<pid>.jfr file in exceptional shutdown situations (crash, OOM) // class JfrEmergencyDump : AllStatic { 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); }; #endif // SHARE_JFR_RECORDER_REPOSITORY_JFREMERGENCYDUMP_HPP --- 29,45 ---- // // Responsible for creating an hs_err<pid>.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, 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
< prev index next >