--- old/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.hpp 2020-03-03 14:59:27.427266400 +0900 +++ new/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.hpp 2020-03-03 14:59:27.118741300 +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 @@ -27,14 +27,17 @@ #include "memory/allocation.hpp" +class outputStream; + // // Responsible for creating an hs_err.jfr file in exceptional shutdown situations (crash, OOM) // class JfrEmergencyDump : AllStatic { public: - static void on_vm_shutdown(bool exception_handler); + static const char* chunk_path(const char* repository_path); static void on_vm_error(const char* repository_path); - static const char* build_dump_path(const char* repository_path); + static void on_vm_error_report(outputStream* st, const char* repository_path); + static void on_vm_shutdown(bool exception_handler); }; #endif // SHARE_JFR_RECORDER_REPOSITORY_JFREMERGENCYDUMP_HPP