mon = (Monitor*) calloc(1, sizeof(Monitor));
if (mon == NULL) {
- LOGE("Unable to allocate monitor");
- dvmAbort();
- }
- if (((u4)mon & 7) != 0) {
- LOGE("Misaligned monitor: %p", mon);
+ ALOGE("Unable to allocate monitor");
dvmAbort();
}
mon->obj = obj;
#endif
endSec = ts->tv_sec + msec / 1000;
if (endSec >= 0x7fffffff) {
- LOGV("NOTE: end time exceeds epoch");
+ ALOGV("NOTE: end time exceeds epoch");
endSec = 0x7ffffffe;
}
ts->tv_sec = endSec;
goto retry;
}
} else {
- LOGV("(%d) spin on lock %p: %#x (%#x) %#x",
+ ALOGV("(%d) spin on lock %p: %#x (%#x) %#x",
threadId, &obj->lock, 0, *thinp, thin);
/*
* The lock is owned by another thread. Notify the VM
* Let the VM know we are no longer waiting and
* try again.
*/
- LOGV("(%d) lock %p surprise-fattened",
+ ALOGV("(%d) lock %p surprise-fattened",
threadId, &obj->lock);
dvmChangeStatus(self, oldStatus);
goto retry;
}
}
- LOGV("(%d) spin on lock done %p: %#x (%#x) %#x",
+ ALOGV("(%d) spin on lock done %p: %#x (%#x) %#x",
threadId, &obj->lock, 0, *thinp, thin);
/*
* We have acquired the thin lock. Let the VM know that
* Fatten the lock.
*/
inflateMonitor(self, obj);
- LOGV("(%d) lock %p fattened", threadId, &obj->lock);
+ ALOGV("(%d) lock %p fattened", threadId, &obj->lock);
}
} else {
/*
* any other thread gets a chance.
*/
inflateMonitor(self, obj);
- LOGV("(%d) lock %p fattened by wait()", self->threadId, &obj->lock);
+ ALOGV("(%d) lock %p fattened by wait()", self->threadId, &obj->lock);
}
mon = LW_MONITOR(obj->lock);
waitMonitor(self, mon, msec, nsec, interruptShouldThrow);
dvmUnlockThreadList();
goto retry;
}
- LOGE("object %p has an unknown hash state %#x", obj, hashState);
+ ALOGE("object %p has an unknown hash state %#x", obj, hashState);
dvmDumpThread(dvmThreadSelf(), false);
dvmAbort();
return 0; /* Quiet the compiler. */