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

Side by Side Diff: base/allocator/partition_allocator/oom.h

Issue 2705413003: Move oom.h into partition_allocator. (Closed)
Patch Set: Update the BUILD.gn file too. Created 3 years, 10 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 | « base/allocator/oom.h ('k') | base/allocator/partition_allocator/partition_alloc.cc » ('j') | 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 #ifndef BASE_ALLOCATOR_OOM_H 5 #ifndef BASE_ALLOCATOR_OOM_H
dcheng 2017/02/23 02:50:12 Nit: fix header guards
6 #define BASE_ALLOCATOR_OOM_H 6 #define BASE_ALLOCATOR_OOM_H
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <windows.h> 11 #include <windows.h>
12 #endif 12 #endif
13 13
14 // Do not want trivial entry points just calling OOM_CRASH() to be 14 // Do not want trivial entry points just calling OOM_CRASH() to be
15 // commoned up by linker icf/comdat folding. 15 // commoned up by linker icf/comdat folding.
(...skipping 12 matching lines...) Expand all
28 } while (0) 28 } while (0)
29 #else 29 #else
30 #define OOM_CRASH() \ 30 #define OOM_CRASH() \
31 do { \ 31 do { \
32 OOM_CRASH_PREVENT_ICF(); \ 32 OOM_CRASH_PREVENT_ICF(); \
33 IMMEDIATE_CRASH(); \ 33 IMMEDIATE_CRASH(); \
34 } while (0) 34 } while (0)
35 #endif 35 #endif
36 36
37 #endif // BASE_ALLOCATOR_OOM_H 37 #endif // BASE_ALLOCATOR_OOM_H
OLDNEW
« no previous file with comments | « base/allocator/oom.h ('k') | base/allocator/partition_allocator/partition_alloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698