RFR: 8303134: JFR: Missing stack trace during chunk rotation stress [v8]

Tobias Hartmann thartmann at openjdk.org
Thu Jul 13 05:46:14 UTC 2023


On Tue, 11 Jul 2023 19:20:32 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

>> Greetings,
>> 
>> please help review this fix for some problematic situations in JFR where data can be lost. Most problems originate from writing event data in the wrong epoch due to safepointing. Detailed information about the changes is in the JIRA issue.
>> 
>> Testing: jdk_jfr, stress testing.
>> 
>> Thanks
>> Markus
>
> Markus Grönlund has updated the pull request incrementally with one additional commit since the last revision:
> 
>   build x86_32

The C2 changes look good to me. I guess this needs some testing on platforms not supported by Oracle.

src/hotspot/share/opto/library_call.cpp line 3024:

> 3022: 
> 3023:   // Load the current value of the notified field in the JfrThreadLocal.
> 3024:   Node* notified_offset =  basic_plus_adr(top(), tls_ptr, in_bytes(NOTIFY_OFFSET_JFR));

Suggestion:

  Node* notified_offset = basic_plus_adr(top(), tls_ptr, in_bytes(NOTIFY_OFFSET_JFR));

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

Marked as reviewed by thartmann (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14761#pullrequestreview-1527596166
PR Review Comment: https://git.openjdk.org/jdk/pull/14761#discussion_r1262003063


More information about the hotspot-jfr-dev mailing list