MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / deallocate

Method deallocate

src/os_macos.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 thread_array_t _thread_array;
33
34 void deallocate() {
35 if (_thread_array != NULL) {
36 for (u32 i = 0; i < _count; i++) {
37 mach_port_deallocate(_task, _thread_array[i]);
38 }
39 vm_deallocate(_task, (vm_address_t)_thread_array, _count * sizeof(thread_t));
40 _thread_array = NULL;
41 }
42 }
43
44 public:
45 MacThreadList() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected