oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

`TBB_malloc_replacement_log()` function unavailable in regular `tbbmalloc` library

Open e4lam opened this issue 6 years ago • 4 comments

@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 avatar Oct 22 '19 17:10 e4lam

@e4lam do you still have this concern regard this interface?

ivankochin avatar May 12 '21 09:05 ivankochin

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.

  1. Aside, the byte-filling features would be useful for tbbmalloc in debug mode as well.

e4lam avatar May 12 '21 13:05 e4lam

@anton-potapov is this issue still relevant?

arunparkugan avatar Aug 13 '24 11:08 arunparkugan

Yes, see my last comment above.

e4lam avatar Aug 13 '24 12:08 e4lam