Analyzers
Community support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
4819 Discussions

Intel Thread Checker and memory allocations

tsahil
Beginner
199 Views
Hi, Our products use internal memory management. This means that we preallocate objects on our own and then manage a large chunk of memory as several independent objects. To explain, we do a malloc() for 1000 bytes, and then use chunks of 50 bytes, typecasted to a given type - effectively creating an array 0f 20 objects. Now, assuming each such object has its own mutex, how can this be conveyed to thread checker? What we assume it does now, is simply views the memory chunk created using malloc() as a single object, checking for thread accesses to it, which causes too many false alarms... Thanks, Tsahi
0 Kudos
1 Reply
ccates
Beginner
199 Views

I don't see any replies to this message. We are doing the same thing and need to know how to tell ThreadChecker about our memory, especially since the memory can be reused between threads if the pool is freed by one thread and allocated by another.

thanks for any help

Claire

Reply