ALOGE("Unable to allocate monitor");
dvmAbort();
}
- if (((u4)mon & 7) != 0) {
- ALOGE("Misaligned monitor: %p", mon);
- dvmAbort();
- }
mon->obj = obj;
dvmInitMutex(&mon->lock);
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;