#include <cstdint>
#include <cstdlib>
#include <runtime/build_config.h>
#include <runtime/rtti/rtti.h>
Go to the source code of this file.
◆ GC_WRAPPER_IMPL
| #define GC_WRAPPER_IMPL |
( |
|
X, |
|
|
|
U |
|
) |
| |
Value: extern "C" void basic_##X##_gc_refcount_increase(U* obj) { \
obj->gc_refcount++; \
} \
\
extern "C" void basic_##X##_gc_refcount_decrease(U* obj) { \
obj->gc_refcount--; \
if (obj->gc_refcount <= 0) { \
} \
}
Definition at line 104 of file memory.h.
◆ GC_WRAPPER_INLINE
| #define GC_WRAPPER_INLINE |
( |
|
X, |
|
|
|
U |
|
) |
| |
Value: static inline void basic_##X##_gc_refcount_increase(U* obj) { \
if (!obj) return; \
obj->gc_refcount++; \
} \
\
static inline void basic_##X##_gc_refcount_decrease(U* obj) { \
if (!obj) return; \
obj->gc_refcount--; \
if (obj->gc_refcount <= 0) { \
} \
}
Definition at line 116 of file memory.h.
◆ GC_WRAPPER_INLINE() [1/7]
◆ GC_WRAPPER_INLINE() [2/7]
◆ GC_WRAPPER_INLINE() [3/7]
◆ GC_WRAPPER_INLINE() [4/7]
◆ GC_WRAPPER_INLINE() [5/7]
◆ GC_WRAPPER_INLINE() [6/7]
◆ GC_WRAPPER_INLINE() [7/7]
◆ runtime_exec_permit_alloc()
| void * runtime_exec_permit_alloc |
( |
unsigned long |
size | ) |
|
◆ runtime_exec_permit_free()
| void runtime_exec_permit_free |
( |
void * |
ptr | ) |
|
◆ runtime_finalize_object()
| void runtime_finalize_object |
( |
YoiObject * |
object | ) |
|
Definition at line 90 of file memory.cpp.
References runtime_finalize_object_report().
Referenced by YoiIntAndIntObject::gc_refcount_decrease(), runtime_get_string_array_data_pointer(), runtime_ping_thread(), runtime_signal_default(), runtime_thread_condition_signal(), runtime_thread_condition_wait(), runtime_thread_finalize_condition(), runtime_thread_finalize_mutex_lock(), runtime_thread_join(), runtime_thread_mutex_lock(), runtime_thread_mutex_try_lock(), runtime_thread_mutex_unlock(), and thread_starter_wrapper().
◆ runtime_finalize_object_report()
| void runtime_finalize_object_report |
( |
YoiObject * |
object | ) |
|
◆ runtime_get_string_array_data_pointer()
◆ runtime_object_alloc()
| void * runtime_object_alloc |
( |
unsigned long |
size | ) |
|
Definition at line 96 of file memory.cpp.
References runtime_object_alloc_report().
Referenced by YoiIntAndIntObject::create(), rtti_object_alloc(), runtime_get_argv(), runtime_get_string_array_data_pointer(), runtime_ping_thread(), runtime_signal_handler(), runtime_signal_register(), runtime_start_thread(), runtime_thread_join(), runtime_thread_mutex_try_lock(), runtime_thread_new_condition(), and runtime_thread_new_mutex_lock().
◆ runtime_object_alloc_report()
| void * runtime_object_alloc_report |
( |
size_t |
size, |
|
|
void * |
object |
|
) |
| |