8274315: JFR: One closed state per file or stream#62
8274315: JFR: One closed state per file or stream#62egahlin wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back egahlin! A progress list of the required criteria for merging this PR into |
|
@egahlin 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 |
|
/integrate |
|
Going to push as commit dfb15c3.
Your commit was automatically rebased without conflicts. |
Hi,
This bug was filed to prevent intermittent failures, for example https://bugs.openjdk.java.net/browse/JDK-8268297, but turns out it didn't prevent that bug, but the problem stll exists.
Closed state is held in two places, both the ChunkParser and the EventStream. Since new instances of ChunkParser are created, where the closed stated is false initially, a thread may continue parsing longer than it should.
With the fix, there is only one closed state per recording or stream.
A follow up fix for JDK 19 may be to move the ParserConfiguration functionality into ParserState. I tried it initially, but there are some corner cases, so I rather wait.
Testing: jdk/jdk/jfr
Thanks
Erik
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk18 pull/62/head:pull/62$ git checkout pull/62Update a local copy of the PR:
$ git checkout pull/62$ git pull https://git.openjdk.java.net/jdk18 pull/62/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 62View PR using the GUI difftool:
$ git pr show -t 62Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk18/pull/62.diff