Skip to content

Commit

Permalink
8215452: Logged repo location is wrong when using delayed recording s…
Browse files Browse the repository at this point in the history
…tart

Reviewed-by: mgronlun, mseledtsov
  • Loading branch information
egahlin committed Feb 7, 2020
1 parent 1af059d commit ac9c260
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/jdk.jfr/share/classes/jdk/jfr/FlightRecorder.java
@@ -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
Expand Down Expand Up @@ -197,7 +197,7 @@ public static FlightRecorder getFlightRecorder() throws IllegalStateException, S
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);
}
}
Expand Down
7 changes: 6 additions & 1 deletion src/jdk.jfr/share/classes/jdk/jfr/internal/Repository.java
@@ -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
Expand Down Expand Up @@ -167,4 +167,9 @@ synchronized void clear() {
public synchronized SafePath getRepositoryPath() {
return repository;
}

public synchronized SafePath getBaseLocation() {
return baseLocation;
}

}

0 comments on commit ac9c260

Please sign in to comment.