Skip to content

Commit aff9a69

Browse files
committedSep 7, 2022
8283224: Remove THREAD_NOT_ALIVE from possible JDWP error codes
Reviewed-by: alanb, sspitsyn
1 parent 76df73b commit aff9a69

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

‎src/java.se/share/data/jdwp/jdwp.spec

+1-1
Original file line numberDiff line numberDiff line change
@@ -3164,7 +3164,7 @@ JDWP "Java(tm) Debug Wire Protocol"
31643164
(Constant THREAD_NOT_SUSPENDED =13 "If the specified thread has not been "
31653165
"suspended by an event.")
31663166
(Constant THREAD_SUSPENDED =14 "Thread already suspended.")
3167-
(Constant THREAD_NOT_ALIVE =15 "Thread has not been started or has terminated.")
3167+
(Constant THREAD_NOT_ALIVE =15 "Not used.")
31683168
(Constant INVALID_OBJECT =20 "If this reference type has been unloaded "
31693169
"and garbage collected.")
31703170
(Constant INVALID_CLASS =21 "Invalid class.")

‎src/jdk.jdi/share/classes/com/sun/tools/jdi/ThreadReferenceImpl.java

-3
Original file line numberDiff line numberDiff line change
@@ -595,9 +595,6 @@ public void forceEarlyReturn(Value returnValue) throws InvalidTypeException,
595595
case JDWP.Error.THREAD_NOT_SUSPENDED:
596596
throw new IncompatibleThreadStateException(
597597
"Thread not suspended");
598-
case JDWP.Error.THREAD_NOT_ALIVE:
599-
throw new IncompatibleThreadStateException(
600-
"Thread has not started or has finished");
601598
case JDWP.Error.NO_MORE_FRAMES:
602599
throw new InvalidStackFrameException(
603600
"No more frames on the stack");

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Sep 7, 2022

@openjdk-notifier[bot]
Please sign in to comment.