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.
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 callingnew
/delete
. I've added FIXME comments to mark these issues, but fixing these will requires some more extensive refactoring.