8265683: vmTestbase/nsk/jdb tests failed with "JDWP exit error AGENT_ERROR_INTERNAL(181)"#3634
8265683: vmTestbase/nsk/jdb tests failed with "JDWP exit error AGENT_ERROR_INTERNAL(181)"#3634plummercj wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back cjplummer! A progress list of the required criteria for merging this PR into |
|
@plummercj The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
/issue JDK-8265683 |
|
@plummercj This issue is referenced in the PR title - it will now be updated. |
Webrevs
|
|
@plummercj 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 12 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 |
dcubed-ojdk
left a comment
There was a problem hiding this comment.
Thumbs up for the quick and dirty fix.
Do you plan to another bug to continue your investigation?
| * Search runningThreads list. The TLS lookup may have failed because the | ||
| * thread has terminated, but the ThreadNode may still be present. | ||
| */ | ||
| if ( node == NULL ) { |
There was a problem hiding this comment.
The extra spaces are intentional to remain consistent with the surrounding code.
| * thread has terminated, but the ThreadNode may still be present. | ||
| */ | ||
| if ( node == NULL ) { | ||
| if (list == NULL || list == &runningThreads ) { |
There was a problem hiding this comment.
In that case, this one is inconsistent.
Yes. The search of runningThreads becomes a performance issue in Loom when the list could have a million items. |
| * thread has terminated, but the ThreadNode may still be present. | ||
| */ | ||
| if ( node == NULL ) { | ||
| if (list == NULL || list == &runningThreads ) { |
There was a problem hiding this comment.
In that case, this one is inconsistent.
|
/integrate |
|
@plummercj Since your change was applied there have been 12 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit a8ddbd1. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This bug was introduced by my recent changes for JDK-8265028, which attempted to speed up ThreadNode lookups by not looking in the runningThreads list if the TLS lookup failed. At the time it was thought that the thread could not possibly be on the list, but it turns out sometimes it can.
For now I'm just doing a quick fix to replace the assert being triggered with a lookup instead, which is pretty much how it worked before JDK-8265028. However, I eventually want to get back to not having to do the lookup, but first I need to better understand why this is happening in the first place, and the tests are failing too often to wait for that, thus the quick fix.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3634/head:pull/3634$ git checkout pull/3634Update a local copy of the PR:
$ git checkout pull/3634$ git pull https://git.openjdk.java.net/jdk pull/3634/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3634View PR using the GUI difftool:
$ git pr show -t 3634Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3634.diff