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

Function rprealloc

source/extern/rpmalloc.c:3124–3134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3122}
3123
3124extern inline RPMALLOC_ALLOCATOR void*
3125rprealloc(void* ptr, size_t size) {
3126#if ENABLE_VALIDATE_ARGS
3127 if (size >= MAX_ALLOC_SIZE) {
3128 errno = EINVAL;
3129 return ptr;
3130 }
3131#endif
3132 heap_t* heap = get_thread_heap();
3133 return _rpmalloc_reallocate(heap, ptr, size, 0, 0);
3134}
3135
3136extern RPMALLOC_ALLOCATOR void*
3137rpaligned_realloc(void* ptr, size_t alignment, size_t size, size_t oldsize,

Callers 4

reallocFunction · 0.85
reallocfFunction · 0.85
_realloc_baseFunction · 0.85
reallocFunction · 0.85

Calls 2

get_thread_heapFunction · 0.85
_rpmalloc_reallocateFunction · 0.85

Tested by

no test coverage detected