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

xpbob duke at openjdk.org
Sun Dec 18 08:53:47 UTC 2022


On Sun, 18 Dec 2022 08:37:11 GMT, xpbob <duke at openjdk.org> wrote:

>> 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 two additional commits since the last revision:
> 
>  - revert file
>  - revert stop

Thanks for review
@egahlin 
I test 2 cases can be recorded normally
1. 

jcmd 18365 JFR.start duration=30s
18365:
Started recording 1. The result will be written to:

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

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


More information about the hotspot-jfr-dev mailing list