/external/chromium_org/base/allocator/ |
H A D | allocator_shim.cc | 14 // amount of inlining that we get with malloc/free/etc. 20 // If flag is 0 (default), calls to malloc will behave normally. 21 // If flag is 1, calls to malloc will behave like calls to new, 98 void* malloc(size_t size) { function 133 // Webkit is brittle for allocators that return NULL for malloc(0). The 135 // to call malloc for this case. 137 return malloc(size);
|
H A D | allocator_unittest.cc | 368 unsigned char* ptr = reinterpret_cast<unsigned char*>(malloc(size)); 409 void* p = malloc(start_sizes[s]); 428 unsigned char* src = reinterpret_cast<unsigned char*>(malloc(src_size)); 443 int** p = reinterpret_cast<int**>(malloc(sizeof(*p) * kNumEntries)); 447 p[i] = reinterpret_cast<int*>(malloc(8192)); 464 char* ptr = reinterpret_cast<char*>(malloc(size));
|
H A D | generic_allocators.cc | 6 // low-level functions malloc() and free(). This way, including a new 16 ptr = malloc(size); 60 // If flag is 0 (default), calls to malloc will behave normally. 61 // If flag is 1, calls to malloc will behave like calls to new, 79 void* result = malloc(size); 98 // Generally, calls to malloc() have padding. So a request 99 // to malloc N bytes actually malloc's N+x bytes. Later, if 113 #undef malloc macro 157 return malloc(siz [all...] |
/external/chromium_org/base/android/linker/ |
H A D | linker_jni.cc | 63 ptr_ = static_cast<char*>(::malloc(size_ + 1));
|
/external/chromium_org/base/memory/ |
H A D | aligned_memory.cc | 10 #include <malloc.h>
|
H A D | aligned_memory.h | 42 #include <malloc.h>
|
H A D | discardable_memory_malloc.cc | 25 memory_.reset(static_cast<uint8*>(malloc(size_)));
|
H A D | ref_counted_memory_unittest.cc | 54 void* data = malloc(6);
|
H A D | scoped_ptr_unittest.cc | 57 return malloc(size);
|
/external/chromium_org/base/process/ |
H A D | launch_posix.cc | 215 // DANGER: no calls to malloc or locks are allowed from now on: 332 // DANGER: no calls to malloc or locks are allowed from now on: 397 // any hidden calls to malloc. 399 reinterpret_cast<void*>(reinterpret_cast<intptr_t>(malloc) & ~4095); 401 memset(reinterpret_cast<void*>(malloc), 0xff, 8); 431 // fd_shuffle1 is mutated by this call because it cannot malloc. 546 // DANGER: no calls to malloc or locks are allowed from now on:
|
H A D | memory_linux.cc | 25 return malloc(size); 70 // For security reasons, we want malloc failures to be fatal. Too much code 71 // doesn't check for a NULL return value from malloc and unconditionally uses 76 // Thus, we define all the standard malloc functions here and mark them as 77 // visibility 'default'. This means that they replace the malloc functions for 85 // redefine malloc and let AddressSanitizer do it instead. 118 DIE_ON_OOM_1(malloc) 160 // malloc and friends and make them die on out of memory. 204 *result = malloc(size);
|
H A D | memory_unittest.cc | 23 #include <malloc/malloc.h> 28 #include <malloc.h> 109 // The following code tests the system implementation of malloc() thus no need 113 // The Mavericks malloc library changed in a way which breaks the tricks used 130 buf = malloc(std::numeric_limits<size_t>::max() - (2 * PAGE_SIZE) - 1); 144 // On 64 bit Macs, the malloc system automatically abort()s on heap corruption 148 // AddressSanitizer replaces malloc() and prints a different error message on 151 "was not malloc\\(\\)-ed"); 229 value_ = malloc(test_size [all...] |
H A D | memory_win.cc | 18 // NULL-check many memory allocations. If a malloc fails, returns NULL, and 92 *result = malloc(size);
|
H A D | process_info_mac.cc | 25 proc(static_cast<struct kinfo_proc*>(malloc(len)));
|
H A D | process_util_unittest.cc | 34 #include <malloc.h> 52 #include <malloc/malloc.h>
|
/external/chromium_org/base/ |
H A D | security_unittest.cc | 65 if (g_slice && !strcmp(g_slice, "always-malloc")) 105 HideValueFromCompiler(malloc(kTooBigAllocSize)))); 120 char* orig_ptr = static_cast<char*>(malloc(1)); 247 // Check that malloc() returns an address that is neither the kernel's 248 // un-hinted mmap area, nor the current brk() area. The first malloc() may 265 static_cast<char*>(malloc(kAllocSize)));
|
H A D | tools_sanity_unittest.cc | 141 char *foo = reinterpret_cast<char*>(malloc(10));
|
/external/chromium_org/base/third_party/dmg_fp/ |
H A D | dtoa.cc | 103 * #define MALLOC your_malloc, where your_malloc(n) acts like malloc(n) 105 * appropriate. If MALLOC is undefined, malloc will be invoked 221 #define MALLOC malloc
|
/external/chromium_org/base/third_party/xdg_user_dirs/ |
H A D | xdg_user_dir_lookup.cc | 67 config_file = (char*) malloc (strlen (home_dir) + strlen ("/.config/user-dirs.dirs") + 1); 76 config_file = (char*) malloc (strlen (config_home) + strlen ("/user-dirs.dirs") + 1); 136 user_dir = (char*) malloc (strlen (home_dir) + 1 + strlen (p) + 1); 145 user_dir = (char*) malloc (strlen (p) + 1); 207 user_dir = (char*) malloc (strlen (home_dir) + strlen ("/Desktop") + 1);
|
/external/chromium_org/chrome/app/ |
H A D | chrome_main_delegate.cc | 47 #include <malloc.h>
|
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/ |
H A D | brlapi_connection.cc | 84 handle_.reset((brlapi_handle_t*) malloc(
|
/external/chromium_org/chrome/browser/password_manager/ |
H A D | password_store_mac.cc | 230 char* time_string = static_cast<char*>(malloc(byte_length + 1));
|
/external/chromium_org/chrome/installer/mac/third_party/bsdiff/ |
H A D | goobsdiff.c | 259 bz2 = malloc(bz2_len); 279 gz = malloc(gz_len); 298 lzma = malloc(lzma_len); 352 that we never try to malloc(0) and get a NULL pointer */ 355 ((old=malloc(oldsize+1))==NULL) || 360 if(((I=malloc((oldsize+1)*sizeof(off_t)))==NULL) || 361 ((V=malloc((oldsize+1)*sizeof(off_t)))==NULL)) err(1,NULL); 368 that we never try to malloc(0) and get a NULL pointer */ 371 ((new=malloc(newsize+1))==NULL) || 376 if(((cb=malloc(newsiz [all...] |
H A D | goobspatch.c | 100 if (!(xzf = malloc(sizeof(xzfile)))) { 448 ((old=malloc(oldsize+1))==NULL) || 462 if((new=malloc(newsize+1))==NULL) err(1,NULL);
|
/external/chromium_org/components/nacl/loader/ |
H A D | nacl_ipc_adapter.cc | 105 // add non-trivial fields or virtual methods. Construction should use malloc, 165 static_cast<QuotaInterface*>(malloc(sizeof *quota_interface)); 172 NaClDescQuota* desc = static_cast<NaClDescQuota*>(malloc(sizeof *desc)); 671 malloc(file_path_str.length() + 1));
|