8243452: JFR: Could not create chunk in repository with over 200 recordings

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2020-05-07 03:18:49 +02:00
parent 28f6cd5917
commit 6dd8443493
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ public final class Repository {
}
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");

View File

@ -75,7 +75,7 @@ final class RepositoryChunk {
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) {