< prev index next >
src/hotspot/share/jfr/recorder/repository/jfrRepository.cpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2011, 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) 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 154,167 ****
if (path != NULL) {
instance().set_path(path);
}
}
bool JfrRepository::open_chunk(bool vm_error /* false */) {
if (vm_error) {
! ResourceMark rm;
! _chunkwriter->set_path(JfrEmergencyDump::build_dump_path(_path));
}
return _chunkwriter->open();
}
size_t JfrRepository::close_chunk() {
--- 154,172 ----
if (path != NULL) {
instance().set_path(path);
}
}
+ const char* JfrRepository::path() {
+ return instance()._path;
+ }
+
bool JfrRepository::open_chunk(bool vm_error /* false */) {
if (vm_error) {
! char chunk_path[JVM_MAXPATHLEN];
! JfrEmergencyDump::build_dump_path(_path, chunk_path, JVM_MAXPATHLEN);
! _chunkwriter->set_path(chunk_path);
}
return _chunkwriter->open();
}
size_t JfrRepository::close_chunk() {
< prev index next >