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

Unified Diff: third_party/tcmalloc/chromium/src/free_list.h

Issue 8000001: Catch some "easy to spot" double frees in TCMalloc (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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/free_list.h
===================================================================
--- third_party/tcmalloc/chromium/src/free_list.h (revision 101306)
+++ third_party/tcmalloc/chromium/src/free_list.h (working copy)
@@ -69,6 +69,7 @@
}
inline void FL_Push(void **list, void *element) {
+ CHECK_NE(*list, element);
SLL_Push(list,element);
}
« no previous file with comments | « no previous file | third_party/tcmalloc/chromium/src/free_list.cc » ('j') | third_party/tcmalloc/chromium/src/free_list.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698