Flutter Engine
The Flutter Engine
|
#include <scavenger.h>
Public Member Functions | |
Scavenger (Heap *heap, intptr_t max_semi_capacity_in_words) | |
~Scavenger () | |
bool | Contains (uword addr) const |
uword | TryAllocate (Thread *thread, intptr_t size) |
uword | TryAllocateNoSafepoint (Thread *thread, intptr_t size) |
intptr_t | AbandonRemainingTLAB (Thread *thread) |
void | AbandonRemainingTLABForDebugging (Thread *thread) |
void | Scavenge (Thread *thread, GCType type, GCReason reason) |
intptr_t | UsedInWords () const |
intptr_t | CapacityInWords () const |
intptr_t | ExternalInWords () const |
SpaceUsage | GetCurrentUsage () const |
intptr_t | ThresholdInWords () const |
void | VisitObjects (ObjectVisitor *visitor) const |
void | VisitObjectPointers (ObjectPointerVisitor *visitor) const |
void | AddRegionsToObjectSet (ObjectSet *set) const |
void | WriteProtect (bool read_only) |
bool | ShouldPerformIdleScavenge (int64_t deadline) |
void | AddGCTime (int64_t micros) |
int64_t | gc_time_micros () const |
void | IncrementCollections () |
intptr_t | collections () const |
void | PrintToJSONObject (JSONObject *object) const |
bool | AllocatedExternal (intptr_t size) |
void | FreedExternal (intptr_t size) |
void | set_freed_in_words (intptr_t value) |
Page * | head () const |
void | PruneNew () |
void | PruneDeferred () |
void | Forward (MarkingStackBlock *blocks) |
void | ForwardDeferred () |
void | PruneWeak (GCLinkedLists *delayed) |
template<typename Type , typename PtrType > | |
void | PruneWeak (GCLinkedList< Type, PtrType > *list) |
Static Public Member Functions | |
static intptr_t | MaxMutatorThreadCount () |
Friends | |
template<bool > | |
class | ScavengerVisitorBase |
Definition at line 124 of file scavenger.h.
dart::Scavenger::Scavenger | ( | Heap * | heap, |
intptr_t | max_semi_capacity_in_words | ||
) |
Definition at line 824 of file scavenger.cc.
dart::Scavenger::~Scavenger | ( | ) |
Definition at line 845 of file scavenger.cc.
intptr_t dart::Scavenger::AbandonRemainingTLAB | ( | Thread * | thread | ) |
Definition at line 1863 of file scavenger.cc.
void dart::Scavenger::AbandonRemainingTLABForDebugging | ( | Thread * | thread | ) |
Definition at line 1850 of file scavenger.cc.
|
inline |
Definition at line 187 of file scavenger.h.
void dart::Scavenger::AddRegionsToObjectSet | ( | ObjectSet * | set | ) | const |
Definition at line 1793 of file scavenger.cc.
|
inline |
Definition at line 202 of file scavenger.h.
|
inline |
Definition at line 164 of file scavenger.h.
|
inline |
Definition at line 193 of file scavenger.h.
|
inline |
Definition at line 136 of file scavenger.h.
|
inline |
Definition at line 168 of file scavenger.h.
void dart::Scavenger::Forward | ( | MarkingStackBlock * | blocks | ) |
Definition at line 1524 of file scavenger.cc.
void dart::Scavenger::ForwardDeferred | ( | ) |
Definition at line 1575 of file scavenger.cc.
|
inline |
|
inline |
Definition at line 189 of file scavenger.h.
|
inline |
Definition at line 169 of file scavenger.h.
|
inline |
Definition at line 237 of file scavenger.h.
|
inline |
Definition at line 191 of file scavenger.h.
|
inlinestatic |
Definition at line 228 of file scavenger.h.
void dart::Scavenger::PrintToJSONObject | ( | JSONObject * | object | ) | const |
Definition at line 2132 of file scavenger.cc.
void dart::Scavenger::PruneDeferred | ( | ) |
Definition at line 1662 of file scavenger.cc.
void dart::Scavenger::PruneNew | ( | ) |
Definition at line 1613 of file scavenger.cc.
void dart::Scavenger::PruneWeak | ( | GCLinkedList< Type, PtrType > * | list | ) |
Definition at line 1710 of file scavenger.cc.
void dart::Scavenger::PruneWeak | ( | GCLinkedLists * | delayed | ) |
Definition at line 1901 of file scavenger.cc.
|
inline |
Definition at line 224 of file scavenger.h.
bool dart::Scavenger::ShouldPerformIdleScavenge | ( | int64_t | deadline | ) |
Definition at line 1170 of file scavenger.cc.
|
inline |
Definition at line 176 of file scavenger.h.
Definition at line 138 of file scavenger.h.
|
inline |
Definition at line 160 of file scavenger.h.
void dart::Scavenger::VisitObjectPointers | ( | ObjectPointerVisitor * | visitor | ) | const |
Definition at line 1775 of file scavenger.cc.
void dart::Scavenger::VisitObjects | ( | ObjectVisitor * | visitor | ) | const |
Definition at line 1784 of file scavenger.cc.
void dart::Scavenger::WriteProtect | ( | bool | read_only | ) |
Definition at line 2126 of file scavenger.cc.
|
friend |
Definition at line 336 of file scavenger.h.