summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2023-11-14 13:34:00 +0000
committerCherrypicker Worker <android-build-cherrypicker-worker@google.com>2023-12-01 09:29:51 +0000
commitd391437fb002d20c8161a8c1a1aadd4ec4b3580b (patch)
tree3e732caafeaa987422d42075613f19c2785ef924
parentede65301cd51ff1bb387aedcaee9b64efa82c619 (diff)
downloadart-d391437fb002d20c8161a8c1a1aadd4ec4b3580b.tar.gz
Log exception for bug 307805798
Test: m Bug: 307805798 (cherry picked from https://android-review.googlesource.com/q/commit:2e9dc37bb8fb031e8dc8244c3da4a7214e567248) Merged-In: I5195495eaf5303cb46657a24c173277e6e23372c Change-Id: I5195495eaf5303cb46657a24c173277e6e23372c
-rw-r--r--runtime/runtime.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 93a8bd0f91..7eff246d12 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -956,7 +956,8 @@ static jobject CreateSystemClassLoader(Runtime* runtime) {
CHECK(getSystemClassLoader->IsStatic());
ObjPtr<mirror::Object> system_class_loader = getSystemClassLoader->InvokeStatic<'L'>(soa.Self());
- CHECK(system_class_loader != nullptr);
+ CHECK(system_class_loader != nullptr)
+ << (soa.Self()->IsExceptionPending() ? soa.Self()->GetException()->Dump() : "<null>");
ScopedAssertNoThreadSuspension sants(__FUNCTION__);
jobject g_system_class_loader =