RFR: 8298526: The detection state allows records in the stopped state to be closed when JFR.stop [v7]

xpbob duke at openjdk.org
Mon Dec 19 03:04:26 UTC 2022


> start jfr with duration
> 
> jcmd 31514 JFR.start duration=30s
> 31514:
> Started recording 1.
> 
> Use jcmd 31514 JFR.stop name=1 filename=FILEPATH to copy recording data to file.
> 
> 
> 
> use JFR.check after 30s
> 
> jcmd 31514 JFR.check
> 31514:
> Recording 1: name=1 duration=30s (stopped)
> 
> 
> Unable to close the stopped jfr
> 
> jcmd 31514 JFR.stop name=1 
> 31514:
> Can't stop an already stopped recording.
> ``` 
>  
> The detection state allows records in the stopped state to be closed when JFR.stop

xpbob has updated the pull request incrementally with one additional commit since the last revision:

  Optimize the code

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/11625/files
  - new: https://git.openjdk.org/jdk/pull/11625/files/08f6cb6d..27f6e88c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=11625&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=11625&range=05-06

  Stats: 17 lines in 1 file changed: 5 ins; 12 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/11625.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/11625/head:pull/11625

PR: https://git.openjdk.org/jdk/pull/11625


More information about the hotspot-jfr-dev mailing list