X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=mymemory.cc;h=e05cb783e2455bdf68aaa5b495fa664e000677f2;hb=05d91de8ac8098425d51e9af2704eb91e04a7f9b;hp=6ea6b92927c4ddebabe5b690b13800667a70fd08;hpb=adf77053d498af32ab4c6764b50d4265bed5996c;p=model-checker.git diff --git a/mymemory.cc b/mymemory.cc index 6ea6b92..e05cb78 100644 --- a/mymemory.cc +++ b/mymemory.cc @@ -1,12 +1,17 @@ -#include "mymemory.h" -#include "snapshot.h" -#include "snapshotimp.h" +#include #include #include #include -#include +#include +#include + +#include "mymemory.h" +#include "snapshot.h" +#include "snapshotimp.h" #include "common.h" + #define REQUESTS_BEFORE_ALLOC 1024 + size_t allocatedReqs[ REQUESTS_BEFORE_ALLOC ] = { 0 }; int nextRequest = 0; int howManyFreed = 0; @@ -193,7 +198,7 @@ void * calloc(size_t num, size_t size) return tmp; } else { void *tmp = HandleEarlyAllocationRequest(size * num); - std::memset(tmp, 0, size * num); + memset(tmp, 0, size * num); return tmp; } }