HomeSort by relevance Sort by last modified time
    Searched refs:alloc_size (Results 1 - 25 of 105) sorted by null

1 2 3 4 5

  /external/clang/test/Sema/
alloc_size.c 3 void* my_malloc(unsigned char) __attribute__((alloc_size(1)));
4 void* my_calloc(unsigned char, short) __attribute__((alloc_size(1,2)));
5 void* my_realloc(void*, unsigned) __attribute__((alloc_size(2)));
8 void* fn1(int) __attribute__((alloc_size("xpto"))); // expected-error{{'alloc_size' attribute requires parameter 1 to be an integer constant}}
10 void* fn2(void*) __attribute__((alloc_size(1))); // expected-error{{'alloc_size' attribute requires an integer constant}}
12 void* fn3(unsigned) __attribute__((alloc_size(0))); // expected-error{{attribute parameter 1 is out of bounds}}
13 void* fn4(unsigned) __attribute__((alloc_size(2))); // expected-error{{attribute parameter 1 is out of bounds}}
15 void fn5(unsigned) __attribute__((alloc_size(1))); // expected-warning{{only applies to functions that return a pointer}
    [all...]
  /external/chromium_org/third_party/tcmalloc/chromium/src/
heap-profile-stats.h 32 alloc_size - free_size == other.alloc_size - other.free_size;
37 int64 alloc_size; // Total size of all allocated objects so far. member in struct:HeapProfileStats
  /external/oprofile/libutil/
op_libiberty.c 30 void * xmemdup (void const * input, size_t copy_size, size_t alloc_size)
32 void * output = xcalloc(1, alloc_size);
  /external/chromium_org/content/browser/loader/
resource_buffer.cc 94 int alloc_size; local
100 alloc_size = buf_size_;
111 alloc_size = buf_size_ - alloc_end_;
116 alloc_size = alloc_start_;
123 alloc_size = alloc_start_ - alloc_end_;
127 // Make sure alloc_size does not exceed max_alloc_size_. We store the
128 // current value of alloc_size, so that we can use ShrinkLastAllocation to
131 alloc_sizes_.push(alloc_size);
133 if (alloc_size > max_alloc_size_) {
134 alloc_size = max_alloc_size_
    [all...]
  /external/compiler-rt/lib/asan/tests/
asan_oob_test.cc 79 for (size_t alloc_size = 1; alloc_size <= 8; alloc_size++) {
81 void *p = malloc(alloc_size);
82 // allocated: [p, p + alloc_size)
85 if (offset + access_size <= alloc_size) {
88 int outside_bytes = offset > alloc_size ? (offset - alloc_size) : 0;
  /external/clang/test/Misc/
ast-dump-attr.cpp 91 void *TestVariadicUnsigned1(int) __attribute__((alloc_size(1)));
95 void *TestVariadicUnsigned2(int, int) __attribute__((alloc_size(1,2)));
  /frameworks/rs/cpu_ref/linkloader/include/impl/
ELFSectionProgBits.hxx 42 size_t alloc_size = section_size; local
62 alloc_size += stub_table_size;
66 if (!result->chunk.allocate(alloc_size)) {
  /external/clang/test/SemaCXX/
cxx11-gnu-attrs.cpp 21 [[gnu::malloc, gnu::alloc_size(1,2)]] void *alloc_size(int a, int b);
  /external/chromium_org/third_party/tcmalloc/vendor/src/
heap-profile-table.cc 120 return (a->alloc_size - a->free_size) > (b->alloc_size - b->free_size);
230 b->alloc_size += bytes;
232 total_.alloc_size += bytes;
301 profile_stats->alloc_size += b.alloc_size;
308 b.alloc_size - b.free_size,
310 b.alloc_size,
377 if (b->alloc_size == 0) {
381 b->alloc_size += r->end_addr - r->start_addr
    [all...]
heap-profile-table.h 64 int64 alloc_size; // Total size of all allocated objects so far member in struct:HeapProfileTable::Stats
70 alloc_size - free_size == x.alloc_size - x.free_size;
388 return (total_.allocs == 0) && (total_.alloc_size == 0);
410 total_.alloc_size += v.bytes;
  /external/chromium_org/chrome/installer/mini_installer/
mini_string.cc 43 size_t SafeStrLen(const wchar_t* str, size_t alloc_size) {
44 if (!str || !alloc_size)
47 while (--alloc_size && str[len] != L'\0')
  /bionic/libc/kernel/common/linux/
relay.h 64 size_t alloc_size; member in struct:rchan
  /development/ndk/platforms/android-3/include/linux/
relay.h 53 size_t alloc_size; member in struct:rchan
  /external/chromium/chrome/common/
service_process_util.cc 234 uint32 alloc_size = sizeof(ServiceProcessSharedData);
236 true, alloc_size))
239 if (!shared_mem_service_data->Map(alloc_size))
242 memset(shared_mem_service_data->memory(), 0, alloc_size);
  /external/chromium_org/chrome/common/
service_process_util.cc 225 uint32 alloc_size = sizeof(ServiceProcessSharedData);
227 true, alloc_size))
230 if (!shared_mem_service_data->Map(alloc_size))
233 memset(shared_mem_service_data->memory(), 0, alloc_size);
  /external/chromium_org/third_party/libxml/linux/include/libxml/
xmlversion.h 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  /external/chromium_org/third_party/libxml/mac/include/libxml/
xmlversion.h 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  /external/chromium_org/third_party/libxml/win32/include/libxml/
xmlversion.h 417 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  /external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
u_upload_mgr.c 163 unsigned alloc_size = align( size, upload->alignment ); local
176 if (MAX2(upload->offset, alloc_offset) + alloc_size > upload->size) {
178 alloc_offset + alloc_size);
209 upload->offset = offset + alloc_size;
  /external/compiler-rt/lib/asan/
asan_fake_stack.cc 40 ALWAYS_INLINE uptr FakeStack::ComputeSizeClass(uptr alloc_size) {
41 uptr rounded_size = RoundUpToPowerOfTwo(alloc_size);
43 CHECK_LE(alloc_size, (1UL << log));
44 CHECK_GT(alloc_size, (1UL << (log-1)));
  /external/libxml2/include/libxml/
xmlversion.h 426 # define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
  /external/mesa3d/src/gallium/auxiliary/util/
u_upload_mgr.c 163 unsigned alloc_size = align( size, upload->alignment ); local
176 if (MAX2(upload->offset, alloc_offset) + alloc_size > upload->size) {
178 alloc_offset + alloc_size);
209 upload->offset = offset + alloc_size;
  /prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/
relay.h 53 size_t alloc_size; member in struct:rchan
  /prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/
relay.h 53 size_t alloc_size; member in struct:rchan
  /prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/
relay.h 53 size_t alloc_size; member in struct:rchan

Completed in 577 milliseconds

1 2 3 4 5