-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8321687: Test vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t002/TestDescription.java failed: JVMTI_ERROR_THREAD_NOT_ALIVE #27831
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…/TestDescription.java failed: JVMTI_ERROR_THREAD_NOT_ALIVE
|
👋 Welcome back lmesnik! A progress list of the required criteria for merging this PR into |
|
@lmesnik 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 53 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 |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this also an issue for tc03t001?
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t002/tc03t002.cpp
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t002/tc03t002.cpp
Outdated
Show resolved
Hide resolved
Thanks, I've updated this test also. |
| int tDfn = 0, gDfn = 0; | ||
| int pThread, cThread; | ||
| int i; | ||
| int debuggee_thread_cnt = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not follow the same pattern as in tc03t002.cpp.
The variable debuggee_thread_cnt is not correctly set and used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Corrected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for update. Looks good.
| return NSK_FALSE; | ||
|
|
||
| for (i = 0; i < threads_count; i++) { | ||
| for (i = 0; i < debuggee_thread_cnt; i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks incomplete.
There is global threads_count variable and it's used in a number of places in the file.
I think it would be simpler to add local total_thread_count and use it only to initialize threadList (GetAllThreads, allocate threadList, iteration through threads); debuggee_thread_cnt needs to be replaced with threads_count
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! You are correct, the debuggee_thread_cnt is made global and used while printing locks.
I also renamed it to debuggee_threads_cnt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still some wrong usage thread_count instead of debuggee_threads_cnt
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t001/tc03t001.cpp
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t001/tc03t001.cpp
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t001/tc03t001.cpp
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t002/tc03t002.cpp
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t002/tc03t002.cpp
Outdated
Show resolved
Hide resolved
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/contention/TC03/tc03t002/tc03t002.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Alex Menkov <alexey.menkov@oracle.com>
|
|
/integrate |
|
Going to push as commit 1816570.
Your commit was automatically rebased without conflicts. |
Test might fail with
It might happens only for some tests that are not started and verified by thread. So the fix is to skip them and verify only "Debugee" threads that might be in the deadlock.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27831/head:pull/27831$ git checkout pull/27831Update a local copy of the PR:
$ git checkout pull/27831$ git pull https://git.openjdk.org/jdk.git pull/27831/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27831View PR using the GUI difftool:
$ git pr show -t 27831Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27831.diff
Using Webrev
Link to Webrev Comment