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

Public Member Functions

 MarkingWeakVisitor (Thread *thread)
 
void VisitHandle (uword addr) override
 
- Public Member Functions inherited from dart::HandleVisitor
 HandleVisitor (Thread *thread)
 
virtual ~HandleVisitor ()
 
Threadthread () const
 
virtual void VisitHandle (uword addr)=0
 

Detailed Description

Definition at line 709 of file marker.cc.

Constructor & Destructor Documentation

◆ MarkingWeakVisitor()

dart::MarkingWeakVisitor::MarkingWeakVisitor ( Thread thread)
inlineexplicit

Definition at line 711 of file marker.cc.

HandleVisitor(Thread *thread)
Thread * thread() const

Member Function Documentation

◆ VisitHandle()

void dart::MarkingWeakVisitor::VisitHandle ( uword  addr)
inlineoverridevirtual

Implements dart::HandleVisitor.

Definition at line 713 of file marker.cc.

713 {
714 FinalizablePersistentHandle* handle =
715 reinterpret_cast<FinalizablePersistentHandle*>(addr);
716 ObjectPtr obj = handle->ptr();
717 if (IsUnreachable(obj)) {
718 handle->UpdateUnreachable(thread()->isolate_group());
719 }
720 }
IsolateGroup * isolate_group() const
Definition: thread.h:541
static bool IsUnreachable(const ObjectPtr obj)
Definition: marker.cc:702

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