MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / rpmalloc

Function rpmalloc

source/extern/rpmalloc.c:3080–3090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3078// Extern interface
3079
3080extern inline RPMALLOC_ALLOCATOR void*
3081rpmalloc(size_t size) {
3082#if ENABLE_VALIDATE_ARGS
3083 if (size >= MAX_ALLOC_SIZE) {
3084 errno = EINVAL;
3085 return 0;
3086 }
3087#endif
3088 heap_t* heap = get_thread_heap();
3089 return _rpmalloc_allocate(heap, size);
3090}
3091
3092extern inline void
3093rpfree(void* ptr) {

Callers 15

operator newFunction · 0.85
operator new[]Function · 0.85
mallocFunction · 0.85
_malloc_baseFunction · 0.85
_ZnwmFunction · 0.85
_ZnamFunction · 0.85
_ZnwmRKSt9nothrow_tFunction · 0.85
_ZnamRKSt9nothrow_tFunction · 0.85
_ZnwjFunction · 0.85
_ZnajFunction · 0.85
_ZnwjRKSt9nothrow_tFunction · 0.85
_ZnajRKSt9nothrow_tFunction · 0.85

Calls 2

get_thread_heapFunction · 0.85
_rpmalloc_allocateFunction · 0.85

Tested by

no test coverage detected