Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::HeapLocker Class Reference
Inheritance diagram for dart::HeapLocker:
dart::StackResource

Public Member Functions

 HeapLocker (Thread *thread, PageSpace *page_space)
 
 ~HeapLocker ()
 
- 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 9505 of file app_snapshot.cc.

Constructor & Destructor Documentation

◆ HeapLocker()

dart::HeapLocker::HeapLocker ( Thread thread,
PageSpace page_space 
)
inline

Definition at line 9507 of file app_snapshot.cc.

9509 page_space_(page_space),
9510 freelist_(page_space->DataFreeList()) {
9511 page_space_->AcquireLock(freelist_);
9512 }
void AcquireLock(FreeList *freelist)
Definition: pages.cc:432
ThreadState * thread() const
Definition: allocation.h:33
StackResource(ThreadState *thread)
Definition: allocation.h:25

◆ ~HeapLocker()

dart::HeapLocker::~HeapLocker ( )
inline

Definition at line 9513 of file app_snapshot.cc.

9513{ page_space_->ReleaseLock(freelist_); }
void ReleaseLock(FreeList *freelist)
Definition: pages.cc:436

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