diff options
Diffstat (limited to 'runtime/thread-inl.h')
| -rw-r--r-- | runtime/thread-inl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/thread-inl.h b/runtime/thread-inl.h index 7aed8b033c..a85d6084b1 100644 --- a/runtime/thread-inl.h +++ b/runtime/thread-inl.h @@ -178,6 +178,11 @@ inline ThreadState Thread::TransitionFromSuspendedToRunnable() { // Failed to transition to Runnable. Release shared mutator_lock_ access and try again. Locks::mutator_lock_->SharedUnlock(this); } else { + // Run the flip function, if set. + Closure* flip_func = GetFlipFunction(); + if (flip_func != nullptr) { + flip_func->Run(this); + } return static_cast<ThreadState>(old_state); } } while (true); |