• Home
  • Raw
  • Download

Lines Matching refs:thread

503 bool dvmAddSingleStep(Thread* thread, int size, int depth)  in dvmAddSingleStep()  argument
507 if (pCtrl->active && thread != pCtrl->thread) { in dvmAddSingleStep()
509 pCtrl->thread, thread); in dvmAddSingleStep()
524 pCtrl->thread = thread; in dvmAddSingleStep()
543 for (fp = thread->interpSave.curFrame; fp != NULL; in dvmAddSingleStep()
556 thread->threadId); in dvmAddSingleStep()
592 dvmComputeVagueFrameDepth(thread, thread->interpSave.curFrame); in dvmAddSingleStep()
596 pCtrl->thread, pCtrl->method, pCtrl->method->name, in dvmAddSingleStep()
607 void dvmClearSingleStep(Thread* thread) in dvmClearSingleStep() argument
609 UNUSED_PARAMETER(thread); in dvmClearSingleStep()
766 if (pCtrl->active && pCtrl->thread == self) { in updateDebugger()
1452 void updateInterpBreak(Thread* thread, ExecutionSubModes subMode, bool enable) in updateInterpBreak() argument
1456 oldValue = newValue = thread->interpBreak; in updateInterpBreak()
1468 thread->altHandlerTable : thread->mainHandlerTable; in updateInterpBreak()
1471 &thread->interpBreak.all) != 0); in updateInterpBreak()
1480 Thread* thread; in updateAllInterpBreak() local
1483 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in updateAllInterpBreak()
1484 updateInterpBreak(thread, subMode, enable); in updateAllInterpBreak()
1498 void dvmAddToSuspendCounts(Thread* thread, int delta, int dbgDelta) in dvmAddToSuspendCounts() argument
1500 thread->suspendCount += delta; in dvmAddToSuspendCounts()
1501 thread->dbgSuspendCount += dbgDelta; in dvmAddToSuspendCounts()
1502 updateInterpBreak(thread, kSubModeSuspendPending, in dvmAddToSuspendCounts()
1503 (thread->suspendCount != 0)); in dvmAddToSuspendCounts()
1509 void dvmDisableSubMode(Thread* thread, ExecutionSubModes subMode) in dvmDisableSubMode() argument
1511 updateInterpBreak(thread, subMode, false); in dvmDisableSubMode()
1514 void dvmEnableSubMode(Thread* thread, ExecutionSubModes subMode) in dvmEnableSubMode() argument
1516 updateInterpBreak(thread, subMode, true); in dvmEnableSubMode()
1538 Thread* thread; in dvmCheckInterpStateConsistency() local
1551 for (thread = gDvm.threadList; thread != NULL; thread = thread->next) { in dvmCheckInterpStateConsistency()
1552 if (subMode != thread->interpBreak.ctl.subMode) { in dvmCheckInterpStateConsistency()
1554 subMode,thread->interpBreak.ctl.subMode,thread->threadId); in dvmCheckInterpStateConsistency()
1556 if (breakFlags != thread->interpBreak.ctl.breakFlags) { in dvmCheckInterpStateConsistency()
1558 breakFlags,thread->interpBreak.ctl.breakFlags,thread->threadId); in dvmCheckInterpStateConsistency()
1561 if (handlerTable != thread->interpBreak.ctl.curHandlerTable) { in dvmCheckInterpStateConsistency()
1563 (int)handlerTable,(int)thread->interpBreak.ctl.curHandlerTable, in dvmCheckInterpStateConsistency()
1564 thread->threadId); in dvmCheckInterpStateConsistency()
1568 if (thread->pJitProfTable != gDvmJit.pProfTable) { in dvmCheckInterpStateConsistency()
1570 (int)thread->pJitProfTable,(int)gDvmJit.pProfTable, in dvmCheckInterpStateConsistency()
1571 thread->threadId); in dvmCheckInterpStateConsistency()
1573 if (thread->jitThreshold != gDvmJit.threshold) { in dvmCheckInterpStateConsistency()
1575 (int)thread->jitThreshold,(int)gDvmJit.threshold, in dvmCheckInterpStateConsistency()
1576 thread->threadId); in dvmCheckInterpStateConsistency()
1590 void dvmArmSafePointCallback(Thread* thread, SafePointCallback funct, in dvmArmSafePointCallback() argument
1593 dvmLockMutex(&thread->callbackMutex); in dvmArmSafePointCallback()
1594 if ((funct == NULL) || (thread->callback == NULL)) { in dvmArmSafePointCallback()
1595 thread->callback = funct; in dvmArmSafePointCallback()
1596 thread->callbackArg = arg; in dvmArmSafePointCallback()
1598 dvmEnableSubMode(thread, kSubModeCallbackPending); in dvmArmSafePointCallback()
1600 dvmDisableSubMode(thread, kSubModeCallbackPending); in dvmArmSafePointCallback()
1604 if ((funct != thread->callback) || in dvmArmSafePointCallback()
1605 (arg != thread->callbackArg)) { in dvmArmSafePointCallback()
1607 ALOGE("ArmSafePointCallback failed, thread %d", thread->threadId); in dvmArmSafePointCallback()
1608 dvmUnlockMutex(&thread->callbackMutex); in dvmArmSafePointCallback()
1612 dvmUnlockMutex(&thread->callbackMutex); in dvmArmSafePointCallback()
1658 void dvmInitializeInterpBreak(Thread* thread) in dvmInitializeInterpBreak() argument
1661 dvmEnableSubMode(thread, kSubModeInstCounting); in dvmInitializeInterpBreak()
1666 dvmEnableSubMode(thread, kSubModeSampleTrace); in dvmInitializeInterpBreak()
1668 dvmEnableSubMode(thread, kSubModeMethodTrace); in dvmInitializeInterpBreak()
1672 dvmEnableSubMode(thread, kSubModeEmulatorTrace); in dvmInitializeInterpBreak()
1675 dvmEnableSubMode(thread, kSubModeDebuggerActive); in dvmInitializeInterpBreak()
1678 dvmJitUpdateThreadStateSingle(thread); in dvmInitializeInterpBreak()
1682 dvmEnableSubMode(thread, kSubModeCheckAlways); in dvmInitializeInterpBreak()