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

Unified Diff: base/allocator/winheap_stubs_win.cc

Issue 2331973002: Fix SyzyASAN build, by removing base/bits.h include. (Closed)
Patch Set: Address primiano's comments. Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/winheap_stubs_win.cc
diff --git a/base/allocator/winheap_stubs_win.cc b/base/allocator/winheap_stubs_win.cc
index 42f40dc8ad4cd48aa9ceb75d8a46b98981300fab..7298bb9411ad3601df13ce512b6f20281f4756a9 100644
--- a/base/allocator/winheap_stubs_win.cc
+++ b/base/allocator/winheap_stubs_win.cc
@@ -13,8 +13,6 @@
#include <new.h>
#include <windows.h>
-#include "base/bits.h"
-
namespace base {
namespace allocator {
@@ -71,7 +69,7 @@ size_t WinHeapGetSizeEstimate(void* ptr) {
const size_t kAllocationGranularity = 8;
#endif
- return base::bits::Align(size, kAllocationGranularity);
+ return (size + kAllocationGranularity - 1) & ~(kAllocationGranularity - 1);
}
// Call the new handler, if one has been set.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698