diff options
Diffstat (limited to 'src/thread.cc')
| -rw-r--r-- | src/thread.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/thread.cc b/src/thread.cc index d86a0c5674..8ab10aff3c 100644 --- a/src/thread.cc +++ b/src/thread.cc @@ -178,7 +178,7 @@ void LockObjectFromCode(Thread* thread, Object* obj) { // TODO: throw and unwind on failure. } -void CheckSuspendFromCode(Thread* thread) { +extern "C" void artCheckSuspendFromCode(Thread* thread) { Runtime::Current()->GetThreadList()->FullSuspendCheck(thread); } @@ -367,6 +367,7 @@ void Thread::InitFunctionPointers() { pThrowArrayBoundsFromCode = art_throw_array_bounds_from_code; pThrowDivZeroFromCode = art_throw_div_zero_from_code; pInvokeInterfaceTrampoline = art_invoke_interface_trampoline; + pTestSuspendFromCode = art_test_suspend; #endif pDeliverException = art_deliver_exception; pF2l = F2L; @@ -391,7 +392,7 @@ void Thread::InitFunctionPointers() { pLockObjectFromCode = LockObjectFromCode; pUnlockObjectFromCode = UnlockObjectFromCode; pFindInstanceFieldFromCode = Field::FindInstanceFieldFromCode; - pCheckSuspendFromCode = CheckSuspendFromCode; + pCheckSuspendFromCode = artCheckSuspendFromCode; pStackOverflowFromCode = StackOverflowFromCode; pThrowVerificationErrorFromCode = ThrowVerificationErrorFromCode; pThrowNegArraySizeFromCode = ThrowNegArraySizeFromCode; |