--- old/src/hotspot/share/jfr/recorder/repository/jfrRepository.cpp 2020-04-28 21:20:56.552994880 +0900 +++ new/src/hotspot/share/jfr/recorder/repository/jfrRepository.cpp 2020-04-28 21:20:56.467993871 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 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 @@ -89,6 +89,10 @@ JfrEmergencyDump::on_vm_error(_path); } +void JfrRepository::on_vm_error_report(outputStream* st) { + JfrEmergencyDump::on_vm_error_report(st, instance()._path); +} + bool JfrRepository::set_path(const char* path) { assert(path != NULL, "trying to set the repository path with a NULL string!"); if (_path != NULL) { @@ -158,8 +162,7 @@ bool JfrRepository::open_chunk(bool vm_error /* false */) { if (vm_error) { - ResourceMark rm; - _chunkwriter->set_path(JfrEmergencyDump::build_dump_path(_path)); + _chunkwriter->set_path(JfrEmergencyDump::chunk_path(_path)); } return _chunkwriter->open(); }