8235347: [Backout] 8235247: WorkerDataArray leaks C heap memory for associated work items

Backout of earlier change due to unexpected crashes.

Reviewed-by: sjohanss
This commit is contained in:
Thomas Schatzl 2019-12-04 18:54:29 +01:00
parent e7d68cd13b
commit 72f42efcd9

View File

@ -59,9 +59,6 @@ T WorkerDataArray<T>::get(uint worker_i) const {
template <typename T>
WorkerDataArray<T>::~WorkerDataArray() {
for (uint i = 0; i < MaxThreadWorkItems; i++) {
delete _thread_work_items[i];
}
FREE_C_HEAP_ARRAY(T, _data);
}