< prev index next >

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

Print this page

2139         )
2140         (ErrorSet
2141             (Error INVALID_THREAD    "The thread is null, not a valid thread, or "
2142                                      "the thread is not alive.")
2143             (Error INVALID_OBJECT    "Thread or value is not a known ID.")
2144             (Error THREAD_NOT_SUSPENDED)
2145             (Error OPAQUE_FRAME      "Attempted to return early from a frame "
2146                                      "corresponding to a native method, "
2147                                      "the thread is a virtual thread and the target "
2148                                      "VM is unable to force its current frame to return, "
2149                                      "or the implementation is unable to provide this "
2150                                      "functionality on this frame.")
2151             (Error NO_MORE_FRAMES)
2152             (Error NOT_IMPLEMENTED)
2153             (Error TYPE_MISMATCH   "Value is not an appropriate type for the "
2154                                    "return value of the method.")
2155             (Error VM_DEAD)
2156         )
2157     )
2158     (Command IsVirtual=15
2159         "<b>IsVirtual is a preview API of the Java platform.</b> "
2160         "<em>Preview features may be removed in a future release, or upgraded to "
2161         "permanent features of the Java platform.</em> Since JDWP version 19."
2162         "<p>"
2163         "Determine if a thread is a "
2164         "<a href=../../api/java.base/java/lang/Thread.html#virtual-threads>virtual thread</a>."

2165         (Out
2166             (threadObject thread "The thread object ID.")
2167         )
2168         (Reply
2169             (boolean isVirtual "true if the thread is a virtual thread.")
2170         )
2171         (ErrorSet
2172             (Error INVALID_THREAD)
2173             (Error INVALID_OBJECT    "thread is not a known ID.")
2174             (Error VM_DEAD)
2175         )
2176     )
2177 )
2178 (CommandSet ThreadGroupReference=12
2179     "See <a href=../../api/java.base/java/lang/ThreadGroup.html>java.lang.ThreadGroup</a>."
2180     (Command Name=1
2181         "Returns the thread group name. "
2182         (Out
2183             (threadGroupObject group "The thread group object ID. ")
2184         )

2520                         "Restricts reported class prepare events to those "
2521                         "for reference types which have a source name "
2522                         "which matches the given restricted regular expression. "
2523                         "The source names are determined by the reference type's "
2524                         "<a href=\"#JDWP_ReferenceType_SourceDebugExtension\"> "
2525                         "SourceDebugExtension</a>. "
2526                         "This modifier can only be used with class prepare "
2527                         "events. "
2528                         "Since JDWP version 1.6. Requires the canUseSourceNameFilters "
2529                         "capability - see "
2530                         "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
2531 
2532                         (string sourceNamePattern "Required source name pattern. "
2533                                 "Matches are limited to exact matches of the "
2534                                 "given pattern and matches of patterns that "
2535                                 "begin or end with '*'; for example, "
2536                                 "\"*.Foo\" or \"java.*\". "
2537                         )
2538                     )
2539                     (Alt PlatformThreadsOnly=13
2540                         "<b>PlatformThreadsOnly is a preview API of the Java platform.</b> "
2541                         "<em>Preview features may be removed in a future release, or upgraded to "
2542                         "permanent features of the Java platform.</em> Since JDWP version 19."
2543                         "<p>"
2544                         "For thread start and thread end events, restrict the "
2545                         "events so they are only sent for platform threads."

2546                     )
2547 
2548                 )
2549             )
2550         )
2551         (Reply
2552             (int requestID "ID of created request")
2553         )
2554         (ErrorSet
2555             (Error INVALID_THREAD)
2556             (Error INVALID_CLASS)
2557             (Error INVALID_STRING)
2558             (Error INVALID_OBJECT)
2559             (Error INVALID_COUNT)
2560             (Error INVALID_FIELDID)
2561             (Error INVALID_METHODID)
2562             (Error INVALID_LOCATION)
2563             (Error INVALID_EVENT_TYPE)
2564             (Error NOT_IMPLEMENTED)
2565             (Error VM_DEAD)

2139         )
2140         (ErrorSet
2141             (Error INVALID_THREAD    "The thread is null, not a valid thread, or "
2142                                      "the thread is not alive.")
2143             (Error INVALID_OBJECT    "Thread or value is not a known ID.")
2144             (Error THREAD_NOT_SUSPENDED)
2145             (Error OPAQUE_FRAME      "Attempted to return early from a frame "
2146                                      "corresponding to a native method, "
2147                                      "the thread is a virtual thread and the target "
2148                                      "VM is unable to force its current frame to return, "
2149                                      "or the implementation is unable to provide this "
2150                                      "functionality on this frame.")
2151             (Error NO_MORE_FRAMES)
2152             (Error NOT_IMPLEMENTED)
2153             (Error TYPE_MISMATCH   "Value is not an appropriate type for the "
2154                                    "return value of the method.")
2155             (Error VM_DEAD)
2156         )
2157     )
2158     (Command IsVirtual=15




2159         "Determine if a thread is a "
2160         "<a href=../../api/java.base/java/lang/Thread.html#virtual-threads>virtual thread</a>."
2161         "<p>Since JDWP version 21."
2162         (Out
2163             (threadObject thread "The thread object ID.")
2164         )
2165         (Reply
2166             (boolean isVirtual "true if the thread is a virtual thread.")
2167         )
2168         (ErrorSet
2169             (Error INVALID_THREAD)
2170             (Error INVALID_OBJECT    "thread is not a known ID.")
2171             (Error VM_DEAD)
2172         )
2173     )
2174 )
2175 (CommandSet ThreadGroupReference=12
2176     "See <a href=../../api/java.base/java/lang/ThreadGroup.html>java.lang.ThreadGroup</a>."
2177     (Command Name=1
2178         "Returns the thread group name. "
2179         (Out
2180             (threadGroupObject group "The thread group object ID. ")
2181         )

2517                         "Restricts reported class prepare events to those "
2518                         "for reference types which have a source name "
2519                         "which matches the given restricted regular expression. "
2520                         "The source names are determined by the reference type's "
2521                         "<a href=\"#JDWP_ReferenceType_SourceDebugExtension\"> "
2522                         "SourceDebugExtension</a>. "
2523                         "This modifier can only be used with class prepare "
2524                         "events. "
2525                         "Since JDWP version 1.6. Requires the canUseSourceNameFilters "
2526                         "capability - see "
2527                         "<a href=\"#JDWP_VirtualMachine_CapabilitiesNew\">CapabilitiesNew</a>."
2528 
2529                         (string sourceNamePattern "Required source name pattern. "
2530                                 "Matches are limited to exact matches of the "
2531                                 "given pattern and matches of patterns that "
2532                                 "begin or end with '*'; for example, "
2533                                 "\"*.Foo\" or \"java.*\". "
2534                         )
2535                     )
2536                     (Alt PlatformThreadsOnly=13




2537                         "For thread start and thread end events, restrict the "
2538                         "events so they are only sent for platform threads."
2539                         "<p>Since JDWP version 21."
2540                     )
2541 
2542                 )
2543             )
2544         )
2545         (Reply
2546             (int requestID "ID of created request")
2547         )
2548         (ErrorSet
2549             (Error INVALID_THREAD)
2550             (Error INVALID_CLASS)
2551             (Error INVALID_STRING)
2552             (Error INVALID_OBJECT)
2553             (Error INVALID_COUNT)
2554             (Error INVALID_FIELDID)
2555             (Error INVALID_METHODID)
2556             (Error INVALID_LOCATION)
2557             (Error INVALID_EVENT_TYPE)
2558             (Error NOT_IMPLEMENTED)
2559             (Error VM_DEAD)
< prev index next >