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 | Prune (MarkingStackBlock **from, MarkingStack *to) |
void | Forward (MarkingStack *stack) |
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 773 of file scavenger.cc.
dart::Scavenger::~Scavenger | ( | ) |
Definition at line 794 of file scavenger.cc.
intptr_t dart::Scavenger::AbandonRemainingTLAB | ( | Thread * | thread | ) |
Definition at line 1690 of file scavenger.cc.
void dart::Scavenger::AbandonRemainingTLABForDebugging | ( | Thread * | thread | ) |
Definition at line 1677 of file scavenger.cc.
|
inline |
Definition at line 187 of file scavenger.h.
void dart::Scavenger::AddRegionsToObjectSet | ( | ObjectSet * | set | ) | const |
Definition at line 1620 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 | ( | MarkingStack * | stack | ) |
Definition at line 1465 of file scavenger.cc.
|
inline |
Definition at line 218 of file scavenger.h.
|
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 1955 of file scavenger.cc.
void dart::Scavenger::Prune | ( | MarkingStackBlock ** | from, |
MarkingStack * | to | ||
) |
Definition at line 1502 of file scavenger.cc.
void dart::Scavenger::PruneWeak | ( | GCLinkedList< Type, PtrType > * | list | ) |
Definition at line 1548 of file scavenger.cc.
void dart::Scavenger::PruneWeak | ( | GCLinkedLists * | delayed | ) |
Definition at line 1728 of file scavenger.cc.
|
inline |
Definition at line 224 of file scavenger.h.
bool dart::Scavenger::ShouldPerformIdleScavenge | ( | int64_t | deadline | ) |
Definition at line 1111 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 1603 of file scavenger.cc.
void dart::Scavenger::VisitObjects | ( | ObjectVisitor * | visitor | ) | const |
Definition at line 1612 of file scavenger.cc.
void dart::Scavenger::WriteProtect | ( | bool | read_only | ) |
Definition at line 1949 of file scavenger.cc.
|
friend |
Definition at line 335 of file scavenger.h.