Community
cancel
Showing results for 
Search instead for 
Did you mean: 
tsahil
Beginner
62 Views

Intel Thread Checker and memory allocations

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
62 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