Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: third_party/tcmalloc/chromium/src/tcmalloc.cc

Issue 7833003: code for encrypting sensitive tcmalloc metadata (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: metadata encryption Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/tcmalloc/chromium/src/tcmalloc.cc
diff --git a/third_party/tcmalloc/chromium/src/tcmalloc.cc b/third_party/tcmalloc/chromium/src/tcmalloc.cc
index e88f983292714c2afa2be6e939c5ae0958cdc894..bbeca1541685d28f57f356be5bc4edafca68a7c0 100644
--- a/third_party/tcmalloc/chromium/src/tcmalloc.cc
+++ b/third_party/tcmalloc/chromium/src/tcmalloc.cc
@@ -125,6 +125,7 @@
#include "internal_logging.h" // for ASSERT, TCMalloc_Printer, etc
#include "linked_list.h" // for SLL_SetNext
#include "malloc_hook-inl.h" // for MallocHook::InvokeNewHook, etc
+#include "metadata_encrypt.h"
#include "page_heap.h" // for PageHeap, PageHeap::Stats
#include "page_heap_allocator.h" // for PageHeapAllocator
#include "span.h" // for Span, DLL_Prepend, etc
@@ -985,6 +986,7 @@ TCMallocGuard::TCMallocGuard() {
// patch the windows VirtualAlloc, etc.
PatchWindowsFunctions(); // defined in windows/patch_functions.cc
#endif
+ tcmalloc::InitEncryption();
tc_free(tc_malloc(1));
ThreadCache::InitTSD();
tc_free(tc_malloc(1));

Powered by Google App Engine
This is Rietveld 408576698