Skip to content

Commit 8f73357

Browse files
author
Serguei Spitsyn
committed
8358815: Exception event spec has stale reference to catch_klass parameter
Reviewed-by: cjplummer, alanb
1 parent 4291582 commit 8f73357

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/hotspot/share/prims/jvmti.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12862,16 +12862,17 @@ myInit() {
1286212862
parameters uniquely identify the current location
1286312863
(where the exception was detected) and allow
1286412864
the mapping to source file and line number when that information is
12865-
available. The <code>exception</code> field identifies the thrown
12865+
available. The <code>exception</code> parameter identifies the thrown
1286612866
exception object. The <code>catch_method</code>
1286712867
and <code>catch_location</code> identify the location of the catch clause,
1286812868
if any, that handles the thrown exception. If there is no such catch clause,
12869-
each field is set to 0. There is no guarantee that the thread will ever
12869+
the <code>catch_method</code> is set to null and the <code>catch_location</code>is set to 0.
12870+
There is no guarantee that the thread will ever
1287012871
reach this catch clause. If there are native methods on the call stack
1287112872
between the throw location and the catch clause, the exception may
1287212873
be reset by one of those native methods.
12873-
Similarly, exceptions that are reported as uncaught (<code>catch_klass</code>
12874-
et al. set to 0) may in fact be caught by native code.
12874+
Similarly, exceptions that are reported as uncaught (<code>catch_method</code>
12875+
set to null) may in fact be caught by native code.
1287512876
Agents can check for these occurrences by monitoring
1287612877
<eventlink id="ExceptionCatch"></eventlink> events.
1287712878
Note that finally clauses are implemented as catch and re-throw. Therefore they
@@ -12960,7 +12961,7 @@ myInit() {
1296012961
available. For exceptions caught in a Java programming language method, the
1296112962
<code>exception</code> object identifies the exception object. Exceptions
1296212963
caught in native methods are not necessarily available by the time the
12963-
exception catch is reported, so the <code>exception</code> field is set
12964+
exception catch is reported, so the <code>exception</code> parameter is set
1296412965
to null.
1296512966
</description>
1296612967
<origin>jvmdi</origin>

0 commit comments

Comments
 (0)