Commit graph

11 commits

Author SHA1 Message Date
33d3adba3f Cleanup of Stats struct 2024-11-12 16:10:10 +09:00
394bfc8963 Use std::recursive_mutex instead of pthread_mutex 2024-11-12 14:43:57 +09:00
563d6ad570 Add support for realloc 2024-06-27 14:45:40 +09:00
882732a3ad Add ids to allocated memory to be printed later 2024-06-26 14:01:51 +09:00
c851ec6a07 Check for ANOTHER_MEMCHECK_QUIET env var, refactor
Now, if ANOTHER_MEMCHECK_QUIET environment variable is defined, do not
print output when malloc/calloc/free is called.

Minor refactoring: remove unused constexpr declarations in header.

Bump version to 2.2 .

Update Changelog.md .
2024-06-06 15:16:42 +09:00
4d000a87e0 Use pthreads to mutex-lock malloc/calloc/free 2024-06-04 15:40:57 +09:00
eb716bf65a Impl. checking calloc as well 2024-06-04 15:15:05 +09:00
0e447dc3be Refactorings
Internally use doubly-linked list instead of singly-linked list. Also
minor fixes related to changing use to doubly-linked list.

Removed unnecessary comments.

Move list add/remove code to designated functions.
2024-06-04 15:08:33 +09:00
81ffe0d26d Remove unused type definition
The type definition was a remnant of attempting to use
std::unordered_map, but that used whatever the "malloc" symbol pointed
to.
2024-06-04 14:53:11 +09:00
7b0af73a06 Remove unnecessary comments
Kept in git history just in case.
2024-06-04 12:06:48 +09:00
5154281078 Init commit working "another_memcheck" 2024-06-04 11:59:36 +09:00