|
hoshi-lang dev
Yet another programming language
|
#include <cstdio>#include <cstdlib>#include <cstring>#include <mimalloc/include/mimalloc.h>#include <runtime/build_config.h>#include "memory.h"#include "runtime/rtti/rtti.h"
Go to the source code of this file.
Functions | |
| void * | runtime_object_alloc_report (size_t size, void *object) |
| void | runtime_finalize_object_report (YoiObject *object) |
| void | runtime_finalize_object (YoiObject *object) |
| void * | runtime_object_alloc (unsigned long size) |
| YoiIntegerObject * | runtime_get_string_array_data_pointer (YoiObjectArray *array) |
| void * | runtime_exec_permit_alloc (unsigned long size) |
| void | runtime_exec_permit_free (void *ptr) |
| void * runtime_exec_permit_alloc | ( | unsigned long | size | ) |
Definition at line 123 of file memory.cpp.
| void runtime_exec_permit_free | ( | void * | ptr | ) |
Definition at line 154 of file memory.cpp.
| 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().


| void runtime_finalize_object_report | ( | YoiObject * | object | ) |
Definition at line 65 of file memory.cpp.
References hperf_report_mem_free(), AllocatedMemoryList::next, AllocatedMemoryList::prev, rtti_table, YoiObject::type_id, and YoiTypeInfo::type_name.
Referenced by runtime_finalize_object().


| YoiIntegerObject * runtime_get_string_array_data_pointer | ( | YoiObjectArray * | array | ) |
Definition at line 102 of file memory.cpp.
References YoiObjectArray::data, YoiObjectArray::gc_refcount, YoiIntegerObject::gc_refcount, runtime_finalize_object(), and 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().


| void * runtime_object_alloc_report | ( | size_t | size, |
| void * | object | ||
| ) |
Definition at line 37 of file memory.cpp.
References hperf_report_mem_alloc(), AllocatedMemoryList::memory, AllocatedMemoryList::next, AllocatedMemoryList::prev, and AllocatedMemoryList::size.
Referenced by runtime_object_alloc().

