Skip to content

Instantly share code, notes, and snippets.

@xibbar
Created July 27, 2012 06:40
Show Gist options
  • Save xibbar/3186499 to your computer and use it in GitHub Desktop.
Save xibbar/3186499 to your computer and use it in GitHub Desktop.
diff --git a/source/distro/google-perftools-1.7/src/tcmalloc.cc b/source/distro/google-perftools-1.7/src/tcmal
index 8d94d20..a699147 100644
--- a/source/distro/google-perftools-1.7/src/tcmalloc.cc
+++ b/source/distro/google-perftools-1.7/src/tcmalloc.cc
@@ -1669,5 +1669,5 @@ static void *MemalignOverride(size_t align, size_t size, const void *caller)
MallocHook::InvokeNewHook(result, size);
return result;
}
-void *(*__memalign_hook)(size_t, size_t, const void *) = MemalignOverride;
+void *(* volatile __memalign_hook)(size_t, size_t, const void *) = MemalignOverride;
#endif // #ifndef TCMALLOC_FOR_DEBUGALLOCATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment