void kstat_exit() { if (!DYNAMO_OPTION(kstats)) return; /* report merged process statistics */ mutex_lock(&process_kstats_lock); print_file(process_kstats_outfile, "Process KSTATS:\n"); kstat_report(process_kstats_outfile, &process_kstats); mutex_unlock(&process_kstats_lock); DELETE_LOCK(process_kstats_lock); #ifndef DEBUG os_close(process_kstats_outfile); #endif }
void memquery_exit(void) { DELETE_LOCK(memory_info_buf_lock); DELETE_LOCK(maps_iter_buf_lock); }
void barrier_destroy(barrier_t *barrier) { DELETE_LOCK(barrier->lock); }
void kernel32_redir_exit_mem(void) { DELETE_LOCK(localheap_lock); }