diff options
author | Andreas Gampe <agampe@google.com> | 2016-04-20 09:55:25 -0700 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2016-04-20 09:55:25 -0700 |
commit | 9510ccd93bb752c1baf9eb12d15c08d43c0720a3 (patch) | |
tree | e742726a3fe41c7c63d402085067392c34de751f /runtime/class_linker.cc | |
parent | d19dc4688b5b93f149d45435deb0a67217464e37 (diff) | |
download | android_art-9510ccd93bb752c1baf9eb12d15c08d43c0720a3.tar.gz android_art-9510ccd93bb752c1baf9eb12d15c08d43c0720a3.tar.bz2 android_art-9510ccd93bb752c1baf9eb12d15c08d43c0720a3.zip |
ART: Add logging for CHECK failure
Add more logging around which thread raced this one.
Bug: 28254258
Change-Id: I136a8074295527a4908825f424fc7fe4b13fbae4
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 6421955fac..504d860be4 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -4489,7 +4489,8 @@ bool ClassLinker::InitializeClass(Thread* self, Handle<mirror::Class> klass, } self->AllowThreadSuspension(); - CHECK_EQ(klass->GetStatus(), mirror::Class::kStatusVerified) << PrettyClass(klass.Get()); + CHECK_EQ(klass->GetStatus(), mirror::Class::kStatusVerified) << PrettyClass(klass.Get()) + << " self.tid=" << self->GetTid() << " clinit.tid=" << klass->GetClinitThreadId(); // From here out other threads may observe that we're initializing and so changes of state // require the a notification. |