- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page