8215452: Logged repo location is wrong when using delayed recording start

Reviewed-by: mgronlun, mseledtsov
This commit is contained in:
Erik Gahlin 2020-02-07 18:24:45 +01:00
parent 1af059d4cb
commit ac9c2601b8
2 changed files with 8 additions and 3 deletions
src/jdk.jfr/share/classes/jdk/jfr

@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 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
@ -197,7 +197,7 @@ public final class FlightRecorder {
Logger.log(JFR, DEBUG, "samplethreads: " + Options.getSampleThreads());
Logger.log(JFR, DEBUG, "stackdepth: " + Options.getStackDepth());
Logger.log(JFR, DEBUG, "threadbuffersize: " + Options.getThreadBufferSize());
Logger.log(JFR, LogLevel.INFO, "Created repository " + Repository.getRepository().getRepositoryPath().toString());
Logger.log(JFR, LogLevel.INFO, "Repository base directory: " + Repository.getRepository().getBaseLocation());
PlatformRecorder.notifyRecorderInitialized(platformRecorder);
}
}

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 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
@ -167,4 +167,9 @@ public final class Repository {
public synchronized SafePath getRepositoryPath() {
return repository;
}
public synchronized SafePath getBaseLocation() {
return baseLocation;
}
}