diff --git a/src/hotspot/share/prims/jvmti.xml b/src/hotspot/share/prims/jvmti.xml index a15dbb5703a37..fef71737c7839 100644 --- a/src/hotspot/share/prims/jvmti.xml +++ b/src/hotspot/share/prims/jvmti.xml @@ -12862,16 +12862,17 @@ myInit() { parameters uniquely identify the current location (where the exception was detected) and allow the mapping to source file and line number when that information is - available. The exception field identifies the thrown + available. The exception parameter identifies the thrown exception object. The catch_method and catch_location identify the location of the catch clause, if any, that handles the thrown exception. If there is no such catch clause, - each field is set to 0. There is no guarantee that the thread will ever + the catch_method is set to null and the catch_locationis set to 0. + There is no guarantee that the thread will ever reach this catch clause. If there are native methods on the call stack between the throw location and the catch clause, the exception may be reset by one of those native methods. - Similarly, exceptions that are reported as uncaught (catch_klass - et al. set to 0) may in fact be caught by native code. + Similarly, exceptions that are reported as uncaught (catch_method + set to null) may in fact be caught by native code. Agents can check for these occurrences by monitoring events. Note that finally clauses are implemented as catch and re-throw. Therefore they @@ -12960,7 +12961,7 @@ myInit() { available. For exceptions caught in a Java programming language method, the exception object identifies the exception object. Exceptions caught in native methods are not necessarily available by the time the - exception catch is reported, so the exception field is set + exception catch is reported, so the exception parameter is set to null. jvmdi