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

Side by Side Diff: base/allocator/allocator_shim_override_glibc_weak_symbols.h

Issue 2393413003: Allocator shim explanatory error message. (Closed)
Patch Set: wording Created 4 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 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifdef BASE_ALLOCATOR_ALLOCATOR_SHIM_OVERRIDE_GLIBC_WEAK_SYMBOLS_H_ 5 #ifdef BASE_ALLOCATOR_ALLOCATOR_SHIM_OVERRIDE_GLIBC_WEAK_SYMBOLS_H_
6 #error This header is meant to be included only once by allocator_shim.cc 6 #error This header is meant to be included only once by allocator_shim.cc
7 #endif 7 #endif
8 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_OVERRIDE_GLIBC_WEAK_SYMBOLS_H_ 8 #define BASE_ALLOCATOR_ALLOCATOR_SHIM_OVERRIDE_GLIBC_WEAK_SYMBOLS_H_
9 9
10 // Alias the internal Glibc symbols to the shim entry points. 10 // Alias the internal Glibc symbols to the shim entry points.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 SHIM_ALWAYS_EXPORT void* __libc_pvalloc(size_t size) 98 SHIM_ALWAYS_EXPORT void* __libc_pvalloc(size_t size)
99 SHIM_ALIAS_SYMBOL(ShimPvalloc); 99 SHIM_ALIAS_SYMBOL(ShimPvalloc);
100 100
101 SHIM_ALWAYS_EXPORT int __posix_memalign(void** r, size_t a, size_t s) 101 SHIM_ALWAYS_EXPORT int __posix_memalign(void** r, size_t a, size_t s)
102 SHIM_ALIAS_SYMBOL(ShimPosixMemalign); 102 SHIM_ALIAS_SYMBOL(ShimPosixMemalign);
103 103
104 } // extern "C" 104 } // extern "C"
105 105
106 // Safety check. 106 // Safety check.
107 #if !defined(__GLIBC__) 107 #if !defined(__GLIBC__)
108 #error The current platform does not seem to use Glibc. 108 #error The target platform does not seem to use Glibc. Disable the allocator \
109 shim by setting use_experimental_allocator_shim=false in GN args.
109 #endif 110 #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