Skip to content
Permalink
Browse files
Fix issue with not unregistering vthreads when they have exited. They…
… were still appearing in the list of threads given to debuggers.
  • Loading branch information
plummercj committed Mar 10, 2021
1 parent 279298c commit 9fd4b017a973d0047fb8e936fec56eba370d4cc7
Showing 1 changed file with 5 additions and 1 deletion.
@@ -2303,7 +2303,11 @@ threadControl_onEventHandlerExit(EventIndex ei, jthread thread,
env = getEnv();
if (ei == EI_THREAD_END) {
jboolean inResume = (node->resumeFrameDepth > 0);
removeThread(env, &runningThreads, thread);
if (isVThread(thread)) {
removeThread(env, &runningVThreads, thread);
} else {
removeThread(env, &runningThreads, thread);
}
node = NULL; /* has been freed */

/*

0 comments on commit 9fd4b01

Please sign in to comment.