Navigation Menu

Skip to content


8252807: The jdk.jfr.Recording.getStream does not work when toDisk is…
Browse files Browse the repository at this point in the history
… disabled

Reviewed-by: mgronlun
  • Loading branch information
egahlin committed Dec 7, 2020
1 parent 04ce8e3 commit 09707dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/jdk.jfr/share/classes/jdk/jfr/
Expand Up @@ -577,6 +577,9 @@ public void setToDisk(boolean disk) {
* Creates a data stream for a specified interval.
* <p>
* The stream may contain some data outside the specified range.
* <p>
* If the recording is not to disk, a stream can't be created
* and {@code null} is returned.
* @param start the start time for the stream, or {@code null} to get data from
* start time of the recording
Expand All @@ -585,12 +588,14 @@ public void setToDisk(boolean disk) {
* present time.
* @return an input stream, or {@code null} if no data is available in the
* interval.
* interval, or the recording was not recorded to disk
* @throws IllegalArgumentException if {@code end} happens before
* {@code start}
* @throws IOException if a stream can't be opened
* @see #setToDisk(boolean)
public InputStream getStream(Instant start, Instant end) throws IOException {
if (start != null && end != null && end.isBefore(start)) {
Expand Down

1 comment on commit 09707dd

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.