Quieten the "invoking/returned" and "Visiting stack roots" logging.
Change-Id: I51de60f7baee64a378ca811749e63d5dc2bc9221
diff --git a/src/object.cc b/src/object.cc
index 33cd802..506c2c8 100644
--- a/src/object.cc
+++ b/src/object.cc
@@ -651,9 +651,14 @@
#endif
if (have_executable_code && stub != NULL) {
- LOG(INFO) << "invoking " << PrettyMethod(this) << " code=" << (void*) GetCode() << " stub=" << (void*) stub;
+ bool log = false;
+ if (log) {
+ LOG(INFO) << "invoking " << PrettyMethod(this) << " code=" << (void*) GetCode() << " stub=" << (void*) stub;
+ }
(*stub)(this, receiver, self, args, result);
- LOG(INFO) << "returned " << PrettyMethod(this) << " code=" << (void*) GetCode() << " stub=" << (void*) stub;
+ if (log) {
+ LOG(INFO) << "returned " << PrettyMethod(this) << " code=" << (void*) GetCode() << " stub=" << (void*) stub;
+ }
} else {
if (Runtime::Current()->IsStarted()) {
LOG(WARNING) << "Not invoking method with no associated code: " << PrettyMethod(this);
diff --git a/src/thread.cc b/src/thread.cc
index c1936fe..01e6f38 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -1245,8 +1245,10 @@
if (!m->IsNative() && !m->IsCalleeSaveMethod()) {
UniquePtr<art::DexVerifier::RegisterMap> map(art::DexVerifier::GetExpandedRegisterMap(m));
const uint8_t* reg_bitmap = art::DexVerifier::RegisterMapGetLine(map.get(), m->ToDexPC(pc));
- LOG(INFO) << "Visiting stack roots in " << PrettyMethod(m, false)
- << "@ PC: " << m->ToDexPC(pc);
+ if (false) {
+ LOG(INFO) << "Visiting stack roots in " << PrettyMethod(m, false)
+ << "@ PC: " << m->ToDexPC(pc);
+ }
CHECK(reg_bitmap != NULL);
const uint16_t* vmap = m->GetVmapTable();
// For all dex registers