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

Unified Diff: base/logging.h

Issue 8366041: Make the placement-new buffer in LazyInstance<Type> aligned. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « base/lazy_instance.h ('k') | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/logging.h
===================================================================
--- base/logging.h (revision 106713)
+++ base/logging.h (working copy)
@@ -716,6 +716,9 @@
#define DCHECK_GE(val1, val2) DCHECK_OP(GE, >=, val1, val2)
#define DCHECK_GT(val1, val2) DCHECK_OP(GT, > , val1, val2)
+#define DCHECK_ALIGNED(ptr) \
willchan no longer on Chromium 2011/10/21 16:10:42 I don't think we need to add this into logging.h.
+ DCHECK_EQ(reinterpret_cast<uintptr_t>((ptr)) % sizeof((ptr)), 0u)
+
#define NOTREACHED() DCHECK(false)
// Redefine the standard assert to use our nice log files
« no previous file with comments | « base/lazy_instance.h ('k') | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698