8280844: Epoch shift synchronization point for Compiler threads is inadequate#8724
8280844: Epoch shift synchronization point for Compiler threads is inadequate#8724mgronlun wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back mgronlun! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
/label hotspot-jfr |
|
@mgronlun |
|
/label remove hotspot |
|
/label add hotspot-compiler |
|
@mgronlun |
|
@mgronlun |
| template <typename EventType> | ||
| static inline void commit(EventType& event) { | ||
| JavaThread* thread = JavaThread::current(); | ||
| assert(thread->thread_state() == _thread_in_native, "invariant"); |
There was a problem hiding this comment.
You don't need this assert as ThreadInVMfromNative already has it.
|
@mgronlun This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 34 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
/label -build |
|
@magicus |
|
/integrate |
|
Going to push as commit d936c30.
Your commit was automatically rebased without conflicts. |
| return index; | ||
| } | ||
|
|
||
| // As part of event commit, a Method* is tagged as a function of an epoch. |
There was a problem hiding this comment.
This transition is not necessary for JVMCI compiler threads: #12787
Greetings,
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
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/8724/head:pull/8724$ git checkout pull/8724Update a local copy of the PR:
$ git checkout pull/8724$ git pull https://git.openjdk.java.net/jdk pull/8724/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 8724View PR using the GUI difftool:
$ git pr show -t 8724Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/8724.diff