Refactor malloc tracing, synchronize most of the stuff after all.
authorMilian Wolff <mail@milianw.de>
Wed, 21 May 2014 10:04:59 +0000 (12:04 +0200)
committerMilian Wolff <mail@milianw.de>
Wed, 21 May 2014 10:04:59 +0000 (12:04 +0200)
commit7e3e32a8e079e833cab046a9f3c7f8b728f97aaf
treeb3bf1a8cd596b4d775be4b6de3770b749c9ddac9
parent56ecaca9a688c93a7f99fd061fb066e76b526b77
Refactor malloc tracing, synchronize most of the stuff after all.

I completely forgot before that a free can follow a malloc in a
different thread which is perfectly fine. To support this, we must
centralize our data handler after all.

This is not too bad as we can merge the multi-thread data into one
file that way and have it interleaved properly which will be good
for later evaluation.

From a contention point of view, I tried to minimize it as much as
possible. Further evaluation and profiling will be done later.
malloctrace.cpp