< prev index next >
src/hotspot/share/jfr/recorder/repository/jfrRepository.cpp
Print this page
@@ -1,7 +1,7 @@
/*
- * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -154,14 +154,19 @@
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) {
- ResourceMark rm;
- _chunkwriter->set_path(JfrEmergencyDump::build_dump_path(_path));
+ 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 >