Skip to content
Permalink
Browse files
8265683: vmTestbase/nsk/jdb tests failed with "JDWP exit error AGENT_…
…ERROR_INTERNAL(181)"

Reviewed-by: amenkov, dcubed
  • Loading branch information
plummercj committed Apr 22, 2021
1 parent 7a55914 commit a8ddbd155bf65431de81b41500b4e329b2c29078
Showing 1 changed file with 9 additions and 2 deletions.
@@ -253,8 +253,15 @@ findThread(ThreadList *list, jthread thread)
if ( list == NULL || list == &otherThreads ) {
node = nonTlsSearch(getEnv(), &otherThreads, thread);
}
/* A thread with no TLS should never be in the runningThreads list. */
JDI_ASSERT(!nonTlsSearch(getEnv(), &runningThreads, thread));
/*
* Search runningThreads list. The TLS lookup may have failed because the
* thread has terminated, but the ThreadNode may still be present.
*/
if ( node == NULL ) {
if ( list == NULL || list == &runningThreads ) {
node = nonTlsSearch(getEnv(), &runningThreads, thread);
}
}
}

/* If a list is supplied, only return ones in this list */

1 comment on commit a8ddbd1

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on a8ddbd1 Apr 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.