Properly dalloc prof nodes with idalloctm.

The prof_alloc_node is allocated through ialloc as internal.  Switch to
idalloctm with tcache and is_internal properly set.
This commit is contained in:
Qi Wang 2019-08-08 12:46:22 -07:00 committed by Qi Wang
parent 8c8466fa6e
commit 22746d3c9f

View File

@ -480,7 +480,7 @@ prof_log_emit_threads(tsd_t *tsd, emitter_t *emitter) {
emitter_json_object_end(emitter);
thr_old_node = thr_node;
thr_node = thr_node->next;
idalloc(tsd, thr_old_node);
idalloctm(tsd_tsdn(tsd), thr_old_node, NULL, NULL, true, true);
}
emitter_json_array_end(emitter);
}
@ -509,7 +509,7 @@ prof_log_emit_traces(tsd_t *tsd, emitter_t *emitter) {
bt_old_node = bt_node;
bt_node = bt_node->next;
idalloc(tsd, bt_old_node);
idalloctm(tsd_tsdn(tsd), bt_old_node, NULL, NULL, true, true);
}
emitter_json_array_end(emitter);
}
@ -547,7 +547,8 @@ prof_log_emit_allocs(tsd_t *tsd, emitter_t *emitter) {
alloc_old_node = alloc_node;
alloc_node = alloc_node->next;
idalloc(tsd, alloc_old_node);
idalloctm(tsd_tsdn(tsd), alloc_old_node, NULL, NULL, true,
true);
}
emitter_json_array_end(emitter);
}