changeset 59191:26dce8fa0588

8243452: JFR: Could not create chunk in repository with over 200 recordings Reviewed-by: mgronlun
author egahlin
date Thu, 07 May 2020 03:18:49 +0200
parents de9b9673431a
children 3f571766f343
files src/jdk.jfr/share/classes/jdk/jfr/internal/Repository.java src/jdk.jfr/share/classes/jdk/jfr/internal/RepositoryChunk.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jfr/share/classes/jdk/jfr/internal/Repository.java	Thu May 07 02:45:49 2020 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/Repository.java	Thu May 07 03:18:49 2020 +0200
@@ -87,7 +87,7 @@
             }
             return new RepositoryChunk(repository, timestamp);
         } catch (Exception e) {
-            String errorMsg = String.format("Could not create chunk in repository %s, %s", repository, e.getMessage());
+            String errorMsg = String.format("Could not create chunk in repository %s, %s: %s", repository, e.getClass(), e.getMessage());
             Logger.log(LogTag.JFR, LogLevel.ERROR, errorMsg);
             jvm.abort(errorMsg);
             throw new InternalError("Could not abort after JFR disk creation error");
--- a/src/jdk.jfr/share/classes/jdk/jfr/internal/RepositoryChunk.java	Thu May 07 02:45:49 2020 +0200
+++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/RepositoryChunk.java	Thu May 07 03:18:49 2020 +0200
@@ -75,7 +75,7 @@
             p = directory.toPath().resolve(extendedName);
         }
         p = directory.toPath().resolve(filename + "_" + System.currentTimeMillis() + FILE_EXTENSION);
-        return SecuritySupport.toRealPath(new SafePath(p));
+        return new SafePath(p);
     }
 
     void finish(Instant endTime) {