Finalize thread, orphan heap
| 3055 | |
| 3056 | //! Finalize thread, orphan heap |
| 3057 | void |
| 3058 | rpmalloc_thread_finalize(int release_caches) { |
| 3059 | heap_t* heap = get_thread_heap_raw(); |
| 3060 | if (heap) |
| 3061 | _rpmalloc_heap_release_raw(heap, release_caches); |
| 3062 | set_thread_heap(0); |
| 3063 | #if defined(_WIN32) && (!defined(BUILD_DYNAMIC_LINK) || !BUILD_DYNAMIC_LINK) |
| 3064 | FlsSetValue(fls_key, 0); |
| 3065 | #endif |
| 3066 | } |
| 3067 | |
| 3068 | int |
| 3069 | rpmalloc_is_thread_initialized(void) { |
no test coverage detected