`TBB_malloc_replacement_log()` function unavailable in regular `tbbmalloc` library
@e4lam , TBB_malloc_replacement_log() function that provides this functionality is available in TBB2019 U4
Originally posted by @ivankochin in https://github.com/intel/tbb/pull/68#issuecomment-469252501
I'm finally upgrading to TBB 2019 and found an issue with this change. TBB_malloc_replacement_log() is only available in tbbmalloc_proxy and not tbbmalloc. So there's no way for me to query whether malloc replacement has been done from some other library without forcing malloc replacement.
@e4lam do you still have this concern regard this interface?
I do. For debug builds, I only sometimes want malloc replacement. Most of the time I link without tbbmalloc_proxy in order to take advantage of the extra runtime checks provided by MSVC's debug allocator (details [1]). So I would like to have the code that queries TBB_malloc_replacement_log() always being compiled into the build independent of whether tbbmalloc_proxy is being linked in or not.
- Aside, the byte-filling features would be useful for tbbmalloc in debug mode as well.
@anton-potapov is this issue still relevant?
Yes, see my last comment above.