X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=HeapProfiler.cpp;fp=HeapProfiler.cpp;h=7091a5344f18ecf92560009aa2552b57f6103782;hb=72aa11ca7df7975f650344e8904a1a690be2480e;hp=348fee6b13879435063b59cb2b49fed420a211ab;hpb=46d3fee70e7e9576c4cc8af46cd66c1c8eceb1e9;p=SXSI%2FTextCollection.git diff --git a/HeapProfiler.cpp b/HeapProfiler.cpp index 348fee6..7091a53 100644 --- a/HeapProfiler.cpp +++ b/HeapProfiler.cpp @@ -27,7 +27,7 @@ unsigned long HeapProfiler::consumption = 0, HeapProfiler::maxConsumption = 0; AllocatedBlocks HeapProfiler::blocks; // Override initialising hook from the C library. -void (*__malloc_initialize_hook) (void) = HeapProfiler::InitHooks; +void (* volatile __malloc_initialize_hook) (void) = HeapProfiler::InitHooks; // Variables to save original hooks. void *(*HeapProfiler::old_malloc_hook)(size_t, const void *);