MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / rpmalloc_thread_initialize

Function rpmalloc_thread_initialize

vm/ByteCodeTranslator/src/rpmalloc.c:1423–1434  ·  view source on GitHub ↗

Initialize thread, assign heap

Source from the content-addressed store, hash-verified

1421
1422//! Initialize thread, assign heap
1423void
1424rpmalloc_thread_initialize(void) {
1425 if (!_memory_thread_heap) {
1426 heap_t* heap = _memory_allocate_heap();
1427#if ENABLE_STATISTICS
1428 heap->thread_to_global = 0;
1429 heap->global_to_thread = 0;
1430#endif
1431 _memory_thread_heap = heap;
1432 atomic_incr32(&_memory_active_heaps);
1433 }
1434}
1435
1436//! Finalize thread, orphan heap
1437void

Callers 5

initializerFunction · 0.85
thread_starterFunction · 0.85
pthread_create_proxyFunction · 0.85
pthread_createFunction · 0.85
rpmalloc_initializeFunction · 0.85

Calls 2

_memory_allocate_heapFunction · 0.85
atomic_incr32Function · 0.85

Tested by

no test coverage detected