Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::TransitionVMToBlocked Class Reference

#include <safepoint.h>

Inheritance diagram for dart::TransitionVMToBlocked:
dart::TransitionSafepointState dart::ThreadStackResource dart::StackResource

Public Member Functions

 TransitionVMToBlocked (Thread *T)
 
 ~TransitionVMToBlocked ()
 
- Public Member Functions inherited from dart::TransitionSafepointState
 TransitionSafepointState (Thread *T)
 
 ~TransitionSafepointState ()
 
SafepointHandlerhandler () const
 
- Public Member Functions inherited from dart::ThreadStackResource
 ThreadStackResource (Thread *T)
 
 ~ThreadStackResource ()
 
Threadthread () const
 
Isolateisolate () const
 
IsolateGroupisolate_group () const
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::StackResource
static void Unwind (ThreadState *thread)
 
static void UnwindAbove (ThreadState *thread, StackResource *new_top)
 

Detailed Description

Definition at line 327 of file safepoint.h.

Constructor & Destructor Documentation

◆ TransitionVMToBlocked()

dart::TransitionVMToBlocked::TransitionVMToBlocked ( Thread T)
inlineexplicit

Definition at line 329 of file safepoint.h.

330 ASSERT(T->CanAcquireSafepointLocks());
331 // A thread blocked on a monitor is considered to be at a safepoint.
332 ASSERT(T->execution_state() == Thread::kThreadInVM);
333 T->set_execution_state(Thread::kThreadInBlockedState);
334 T->EnterSafepoint();
335 }
@ kThreadInBlockedState
Definition: thread.h:1037
#define ASSERT(E)
#define T
Definition: precompiler.cc:65

◆ ~TransitionVMToBlocked()

dart::TransitionVMToBlocked::~TransitionVMToBlocked ( )
inline

Definition at line 337 of file safepoint.h.

337 {
338 // We are returning to vm code and so we are not at a safepoint anymore.
339 ASSERT(thread()->execution_state() == Thread::kThreadInBlockedState);
342 }
void set_execution_state(ExecutionState state)
Definition: thread.h:1048
void ExitSafepoint()
Definition: thread.h:1094

The documentation for this class was generated from the following file: