equal
deleted
inserted
replaced
86 Utils.checkAccessFlightRecorder(); |
86 Utils.checkAccessFlightRecorder(); |
87 AccessControlContext acc = AccessController.getContext(); |
87 AccessControlContext acc = AccessController.getContext(); |
88 this.recording = new Recording(); |
88 this.recording = new Recording(); |
89 this.recording.setFlushInterval(Duration.ofMillis(1000)); |
89 this.recording.setFlushInterval(Duration.ofMillis(1000)); |
90 try { |
90 try { |
91 this.directoryStream = new EventDirectoryStream(acc, null, SecuritySupport.PRIVILIGED, true); |
91 PlatformRecording pr = PrivateAccess.getInstance().getPlatformRecording(recording); |
|
92 this.directoryStream = new EventDirectoryStream(acc, null, SecuritySupport.PRIVILIGED, pr); |
92 } catch (IOException ioe) { |
93 } catch (IOException ioe) { |
93 this.recording.close(); |
94 this.recording.close(); |
94 throw new IllegalStateException(ioe.getMessage()); |
95 throw new IllegalStateException(ioe.getMessage()); |
95 } |
96 } |
96 } |
97 } |