Skip to content

Commit 04222bb

Browse files
committed
Remove threadControl_setName(). It's no longer called.
1 parent ff234bf commit 04222bb

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

src/jdk.jdwp.agent/share/native/libjdwp/ThreadReferenceImpl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ name(PacketInputStream *in, PacketOutputStream *out)
6565
}
6666

6767
if ( info.name != NULL ) {
68-
threadControl_setName(thread, info.name);
6968
jvmtiDeallocate(info.name);
7069
}
7170
} END_WITH_LOCAL_REFS(env);

src/jdk.jdwp.agent/share/native/libjdwp/threadControl.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,17 +2310,6 @@ threadControl_onEventHandlerExit(EventIndex ei, jthread thread,
23102310
}
23112311
}
23122312

2313-
void
2314-
threadControl_setName(jthread thread, const char *name)
2315-
{
2316-
#ifdef DEBUG_THREADNAME
2317-
ThreadNode *node = findThread(NULL, thread);
2318-
if (node != NULL) {
2319-
strncpy(node->name, name, sizeof(node->name) - 1);
2320-
}
2321-
#endif
2322-
}
2323-
23242313
/* Returns JDWP flavored status and status flags. */
23252314
jvmtiError
23262315
threadControl_applicationThreadStatus(jthread thread,

src/jdk.jdwp.agent/share/native/libjdwp/threadControl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ InvokeRequest *threadControl_getInvokeRequest(jthread);
5757
jboolean threadControl_isDebugThread(jthread thread);
5858
jvmtiError threadControl_addDebugThread(jthread thread);
5959

60-
void threadControl_setName(jthread thread, const char *name);
6160
jvmtiError threadControl_applicationThreadStatus(jthread thread, jdwpThreadStatus *pstatus, jint *suspendStatus);
6261
jvmtiError threadControl_interrupt(jthread thread);
6362
jvmtiError threadControl_stop(jthread thread, jobject throwable);

0 commit comments

Comments
 (0)