RFR: 8351594: JFR: Rate-limited sampling of Java events [v9]
    Erik Gahlin 
    egahlin at openjdk.org
       
    Thu Jun  5 11:10:54 UTC 2025
    
    
  
On Thu, 5 Jun 2025 10:35:10 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Erik Gahlin has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Move the timestamp to before the try block, change bytes to bytesWritten and remove unnecessary code
>
> src/java.base/share/classes/java/lang/Throwable.java line 124:
> 
>> 122:      * exceptions should be traced by JFR.
>> 123:      */
>> 124:     static boolean jfrTracing;
> 
> Are you sure this is okay?
When JFR starts the JVM is brought to safepoint so the whole heap becomes visible. We have used it for socket events without any issues.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25559#discussion_r2128580995
    
    
More information about the net-dev
mailing list