Rename instrumentation ExceptionCaught to ExceptionThrown
The instrumentation ExceptionCaught event was badly named since it is
actually sent at the time the exception is thrown and is sent even if
the exception is never actually caught. Rename it and associated
methods/fields to ExceptionThrown to more accurately reflect the
event's semantics.
Test: ./test.py --host -j50
Change-Id: I1e9c401ab619259b25928dbf19f62d3fa9573d47
diff --git a/runtime/debugger.cc b/runtime/debugger.cc
index 0b7af4e..fe0bad2 100644
--- a/runtime/debugger.cc
+++ b/runtime/debugger.cc
@@ -238,7 +238,7 @@
Dbg::PostFieldModificationEvent(method, dex_pc, this_object.Get(), field, &field_value);
}
- void ExceptionCaught(Thread* thread ATTRIBUTE_UNUSED,
+ void ExceptionThrown(Thread* thread ATTRIBUTE_UNUSED,
Handle<mirror::Throwable> exception_object)
OVERRIDE REQUIRES_SHARED(Locks::mutator_lock_) {
Dbg::PostException(exception_object.Get());
@@ -3145,7 +3145,7 @@
return &field_read_event_ref_count_;
case instrumentation::Instrumentation::kFieldWritten:
return &field_write_event_ref_count_;
- case instrumentation::Instrumentation::kExceptionCaught:
+ case instrumentation::Instrumentation::kExceptionThrown:
return &exception_catch_event_ref_count_;
default:
return nullptr;