RFR: 8280844: Epoch shift synchronization point for Compiler threads is inadequate [v2]

Doug Simon dnsimon at openjdk.org
Tue Feb 28 14:30:27 UTC 2023


On Mon, 16 May 2022 11:37:43 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

>> Greetings,
>> 
>> [JDK-8233111](https://bugs.openjdk.java.net/browse/JDK-8233111) attempted to address artefact tagging for Compiler threads, letting threads run _thread_in_native to avoid the transition. Unfortunately, that attempt proved inadequate.
>> 
>> The epoch race is avoided only by performing the transition to _thread_in_vm.
>> 
>> Testing: jdk_jfr
>> 
>> Thanks
>> Markus
>
> Markus Grönlund has updated the pull request incrementally with one additional commit since the last revision:
> 
>   delegate assertion

src/hotspot/share/compiler/compilerEvent.cpp line 119:

> 117: }
> 118: 
> 119: // As part of event commit, a Method* is tagged as a function of an epoch.

This transition is not necessary for JVMCI compiler threads: https://github.com/openjdk/jdk/pull/12787

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

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


More information about the hotspot-compiler-dev mailing list