habanero-rice / hclib

A C/C++ task-based programming model for shared memory and distributed parallel computing.
http://habanero-rice.github.io/hclib/
BSD 3-Clause "New" or "Revised" License
71 stars 35 forks source link

Remove old allocator macros #13

Closed DaoWen closed 8 years ago

DaoWen commented 8 years ago

The HC_MALLOC/FREE macros are an artifact of the legacy HC runtime, which at one time had a modified version of the Cilk allocator in the codebase. We now prefer linking against a 3rd-party scalable allocator (e.g., tbb_malloc), making these macros obsolete.

There are some places where the C++ code is now calling malloc/memcpy/free directly instead of calling new/delete. I've added FIXME comments to mark these issues, but fixing these will requires some more extensive refactoring.