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;
size_t len;
int fd;
+ /* When a thread is being destroyed it is normal that the frame depth is zero */
+ if (self->interpSave.curFrame == NULL) {
+ return;
+ }
+
saveArea = SAVEAREA_FROM_FP(self->interpSave.curFrame);
meth = saveArea->method;
cp = eventBuffer;
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. */