diff -r 80e1201f6c9a -r a0f39cc47387 src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingStream.java --- a/src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingStream.java Fri Nov 22 09:06:35 2019 -0500 +++ b/src/jdk.jfr/share/classes/jdk/jfr/consumer/RecordingStream.java Fri Nov 22 17:20:43 2019 +0100 @@ -88,7 +88,8 @@ this.recording = new Recording(); this.recording.setFlushInterval(Duration.ofMillis(1000)); try { - this.directoryStream = new EventDirectoryStream(acc, null, SecuritySupport.PRIVILIGED, true); + PlatformRecording pr = PrivateAccess.getInstance().getPlatformRecording(recording); + this.directoryStream = new EventDirectoryStream(acc, null, SecuritySupport.PRIVILIGED, pr); } catch (IOException ioe) { this.recording.close(); throw new IllegalStateException(ioe.getMessage());