RFR: 8373485: JFR Crash during sampling: assert(jt->has_last_Java_frame()) failed: invariant [v2]

Erik Gahlin egahlin at openjdk.org
Tue Jan 13 10:33:43 UTC 2026


On Mon, 12 Jan 2026 14:00:23 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

>> Greetings,
>> 
>> When sampling threads in state _thread_in_native, there is a missing memory barrier when UseSystemMemoryBarrier is used, because it must be emitted manually.
>> 
>> Testing: jdk_jfr
>> 
>> Thanks
>> Markus
>> 
>> PS "threads_lock" local variable was renamed to "lock" not to confuse with the global Threads_lock.
>
> Markus Grönlund has updated the pull request incrementally with one additional commit since the last revision:
> 
>   explicit fences

Marked as reviewed by egahlin (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/29155#pullrequestreview-3655069713


More information about the hotspot-jfr-dev mailing list