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

Side by Side Diff: base/allocator/debugallocation_shim.cc

Issue 2198253002: Workaround for issue breaking NACL on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Workaround for issue breaking NACL on ChromeOS. Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Workaround for crosbug:629593. Using AFDO on the tcmalloc files is
6 // causing problems. The tcmalloc files depend on stack layouts and
7 // AFDO can mess with them. Better not to use AFDO there. This is a
8 // temporary hack. We will add a mechanism in the build system to
9 // avoid using -fauto-profile for tcmalloc files.
10 #if !defined(__clang__)
11 #pragma GCC optimize ("no-auto-profile")
12 #endif
13
5 #if defined(TCMALLOC_FOR_DEBUGALLOCATION) 14 #if defined(TCMALLOC_FOR_DEBUGALLOCATION)
6 #include "third_party/tcmalloc/chromium/src/debugallocation.cc" 15 #include "third_party/tcmalloc/chromium/src/debugallocation.cc"
7 #else 16 #else
8 #include "third_party/tcmalloc/chromium/src/tcmalloc.cc" 17 #include "third_party/tcmalloc/chromium/src/tcmalloc.cc"
9 #endif 18 #endif
OLDNEW
« 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