Searched refs:malloc (Results 76 - 100 of 2881) sorted by path

1234567891011>>

/external/chromium_org/base/allocator/
H A Dallocator_shim.cc14 // 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 Dallocator_unittest.cc368 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 Dgeneric_allocators.cc6 // 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 Dlinker_jni.cc63 ptr_ = static_cast<char*>(::malloc(size_ + 1));
/external/chromium_org/base/memory/
H A Daligned_memory.cc10 #include <malloc.h>
H A Daligned_memory.h42 #include <malloc.h>
H A Ddiscardable_memory_malloc.cc25 memory_.reset(static_cast<uint8*>(malloc(size_)));
H A Dref_counted_memory_unittest.cc54 void* data = malloc(6);
H A Dscoped_ptr_unittest.cc57 return malloc(size);
/external/chromium_org/base/process/
H A Dlaunch_posix.cc215 // 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 Dmemory_linux.cc25 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 Dmemory_unittest.cc23 #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 Dmemory_win.cc18 // NULL-check many memory allocations. If a malloc fails, returns NULL, and
92 *result = malloc(size);
H A Dprocess_info_mac.cc25 proc(static_cast<struct kinfo_proc*>(malloc(len)));
H A Dprocess_util_unittest.cc34 #include <malloc.h>
52 #include <malloc/malloc.h>
/external/chromium_org/base/
H A Dsecurity_unittest.cc65 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 Dtools_sanity_unittest.cc141 char *foo = reinterpret_cast<char*>(malloc(10));
/external/chromium_org/base/third_party/dmg_fp/
H A Ddtoa.cc103 * #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 Dxdg_user_dir_lookup.cc67 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 Dchrome_main_delegate.cc47 #include <malloc.h>
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
H A Dbrlapi_connection.cc84 handle_.reset((brlapi_handle_t*) malloc(
/external/chromium_org/chrome/browser/password_manager/
H A Dpassword_store_mac.cc230 char* time_string = static_cast<char*>(malloc(byte_length + 1));
/external/chromium_org/chrome/installer/mac/third_party/bsdiff/
H A Dgoobsdiff.c259 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 Dgoobspatch.c100 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 Dnacl_ipc_adapter.cc105 // 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));

Completed in 3992 milliseconds

1234567891011>>