--- old/src/hotspot/share/jfr/jfr.cpp 2020-02-11 22:39:40.262682600 +0900 +++ new/src/hotspot/share/jfr/jfr.cpp 2020-02-11 22:39:39.473232500 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 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 @@ -30,6 +30,7 @@ #include "jfr/recorder/checkpoint/jfrCheckpointManager.hpp" #include "jfr/recorder/repository/jfrEmergencyDump.hpp" #include "jfr/recorder/service/jfrOptionSet.hpp" +#include "jfr/recorder/repository/jfrRepository.hpp" #include "jfr/support/jfrThreadLocal.hpp" #include "runtime/java.hpp" @@ -114,3 +115,17 @@ bool Jfr::on_start_flight_recording_option(const JavaVMOption** option, char* delimiter) { return JfrOptionSet::parse_start_flight_recording_option(option, delimiter); } + +void Jfr::setup_emergency_dump_file_descriptor() { + if (JfrRecorder::is_recording()) { + JfrEmergencyDump::setup_emergency_dump_file_descriptor(); + } +} + +const char* Jfr::saved_emergency_dump_path() { + return JfrEmergencyDump::saved_emergency_dump_path(); +} + +const char* Jfr::repository_path() { + return JfrRepository::path(); +}