AI 145950: Quiet a log message and a tenacious gcc warning.
Automated import of CL 145950
diff --git a/vm/Thread.c b/vm/Thread.c
index 8d4550b..0751f37 100644
--- a/vm/Thread.c
+++ b/vm/Thread.c
@@ -3249,7 +3249,8 @@
const u1* regVector;
int i;
- pMap = dvmGetExpandedRegisterMap((Method*) method);
+ Method* nonConstMethod = (Method*) method; // quiet gcc
+ pMap = dvmGetExpandedRegisterMap(nonConstMethod);
if (pMap != NULL) {
/* found map, get registers for this address */
int addr = saveArea->xtra.currentPc - method->insns;
@@ -3274,7 +3275,7 @@
* no need to keep banging on the global.
*/
if (gDvm.preciseGc) {
- LOGI("PGC: no map for %s.%s\n",
+ LOGV("PGC: no map for %s.%s\n",
method->clazz->descriptor, method->name);
}
regVector = NULL;