hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
weak.cpp File Reference
#include <mimalloc/include/mimalloc.h>
#include "weak.h"
Include dependency graph for weak.cpp:

Go to the source code of this file.

Functions

WeakSlotruntime_weak_slot_alloc (void *target, WeakSlot **weak_slots_head_ptr)
 
void runtime_weak_slot_free (WeakSlot *slot, WeakSlot **weak_slots_head_ptr)
 
void runtime_weak_slot_nullify_all (WeakSlot **weak_slots_head_ptr)
 

Function Documentation

◆ runtime_weak_slot_alloc()

WeakSlot * runtime_weak_slot_alloc ( void *  target,
WeakSlot **  weak_slots_head_ptr 
)

Definition at line 8 of file weak.cpp.

References WeakSlot::target.

◆ runtime_weak_slot_free()

void runtime_weak_slot_free ( WeakSlot slot,
WeakSlot **  weak_slots_head_ptr 
)

Definition at line 17 of file weak.cpp.

References WeakSlot::next_in_target.

◆ runtime_weak_slot_nullify_all()

void runtime_weak_slot_nullify_all ( WeakSlot **  weak_slots_head_ptr)

Definition at line 30 of file weak.cpp.

References WeakSlot::target.

Referenced by YoiIntAndIntObject::gc_refcount_decrease().

Here is the caller graph for this function: