| /NextBSD/contrib/compiler-rt/lib/sanitizer_common/tests/ |
| HD | standalone_malloc_test.cc | 21 vector<pair<char *, size_t> > allocated; in MallocThread() local 22 allocated.reserve(kNumIters); in MallocThread() 36 allocated.push_back(make_pair(x, size)); in MallocThread() 39 if (allocated.empty()) continue; in MallocThread() 40 size_t slot = i % allocated.size(); in MallocThread() 41 char *p = allocated[slot].first; in MallocThread() 43 size_t size = allocated[slot].second; in MallocThread() 45 swap(allocated[slot], allocated.back()); in MallocThread() 46 allocated.pop_back(); in MallocThread() 54 for (size_t i = 0; i < allocated.size(); i++) in MallocThread() [all …]
|
| HD | sanitizer_allocator_test.cc | 88 std::vector<void *> allocated; in TestSizeClassAllocator() local 105 allocated.push_back(x); in TestSizeClassAllocator() 120 for (uptr i = 0; i < allocated.size(); i++) { in TestSizeClassAllocator() 121 void *x = allocated[i]; in TestSizeClassAllocator() 127 allocated.clear(); in TestSizeClassAllocator() 167 void *allocated[kNumAllocs]; in SizeClassAllocatorMetadataStress() local 171 allocated[i] = x; in SizeClassAllocatorMetadataStress() 177 void *m = a->GetMetaData(allocated[idx]); in SizeClassAllocatorMetadataStress() 181 cache.Deallocate(a, 1 + i % 50, allocated[i]); in SizeClassAllocatorMetadataStress() 340 char *allocated[kNumAllocs]; in TEST() local [all …]
|
| /NextBSD/contrib/libarchive/libarchive/ |
| HD | archive_write_disk_set_standard_lookup.c | 125 char *allocated = NULL; in lookup_gid() local 137 free(allocated); in lookup_gid() 138 allocated = malloc(bufsize); in lookup_gid() 139 if (allocated == NULL) in lookup_gid() 141 buffer = allocated; in lookup_gid() 145 free(allocated); in lookup_gid() 195 char *allocated = NULL; in lookup_uid() local 207 free(allocated); in lookup_uid() 208 allocated = malloc(bufsize); in lookup_uid() 209 if (allocated == NULL) in lookup_uid() [all …]
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | environ.c | 38 e->allocated = 10; in make_environ() 39 e->vector = (char **) xmalloc ((e->allocated + 1) * sizeof (char *)); in make_environ() 72 if (e->allocated < i) in init_environ() 74 e->allocated = max (i, e->allocated + 10); in init_environ() 76 (e->allocated + 1) * sizeof (char *)); in init_environ() 131 if (i == e->allocated) in set_in_environ() 133 e->allocated += 10; in set_in_environ() 135 (e->allocated + 1) * sizeof (char *)); in set_in_environ()
|
| /NextBSD/contrib/gcclibs/libgomp/ |
| HD | env.c | 191 size_t allocated = 0, used = 0, needed; in parse_affinity() local 227 if (used + needed >= allocated) in parse_affinity() 231 if (allocated < 64) in parse_affinity() 232 allocated = 64; in parse_affinity() 233 if (allocated > needed) in parse_affinity() 234 allocated <<= 1; in parse_affinity() 236 allocated += 2 * needed; in parse_affinity() 237 new_cpus = realloc (cpus, allocated * sizeof (unsigned short)); in parse_affinity()
|
| /NextBSD/lib/libthr/thread/ |
| HD | thr_spec.c | 65 if (_thread_keytable[i].allocated == 0) { in _pthread_key_create() 66 _thread_keytable[i].allocated = 1; in _pthread_key_create() 91 if (_thread_keytable[key].allocated) { in _pthread_key_delete() 92 _thread_keytable[key].allocated = 0; in _pthread_key_delete() 119 if (_thread_keytable[key].allocated && in _thread_cleanupspecific() 173 !_thread_keytable[key].allocated) in _pthread_setspecific() 209 if (_thread_keytable[key].allocated && pthread->specific != NULL && in _pthread_getspecific() 233 if (!_thread_keytable[key].allocated) in _thr_tsd_unload()
|
| /NextBSD/contrib/compiler-rt/lib/sanitizer_common/ |
| HD | sanitizer_symbolizer_libbacktrace.cc | 45 uptr size, allocated; member 52 if (needed > data->allocated) { in CplusV3DemangleCallback() 53 data->allocated *= 2; in CplusV3DemangleCallback() 54 if (needed > data->allocated) in CplusV3DemangleCallback() 55 data->allocated = needed; in CplusV3DemangleCallback() 56 char *buf = (char *)InternalAlloc(data->allocated); in CplusV3DemangleCallback() 73 data.allocated = 0; in CplusV3Demangle() 76 if (data.size + 64 > data.allocated) in CplusV3Demangle()
|
| HD | sanitizer_common_libcdep.cc | 87 stack_depot_stats->allocated) { in BackgroundThread() 91 stack_depot_stats->allocated >> 20); in BackgroundThread() 92 prev_reported_stack_depot_size = stack_depot_stats->allocated; in BackgroundThread()
|
| /NextBSD/contrib/compiler-rt/lib/msan/ |
| HD | msan_allocator.cc | 108 void *allocated; in MsanAllocate() local 111 allocated = allocator.Allocate(cache, size, alignment, false); in MsanAllocate() 115 allocated = allocator.Allocate(cache, size, alignment, false); in MsanAllocate() 118 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate() 121 __msan_clear_and_unpoison(allocated, size); in MsanAllocate() 123 __msan_poison(allocated, size); in MsanAllocate() 127 __msan_set_origin(allocated, size, o.raw_id()); in MsanAllocate() 130 MSAN_MALLOC_HOOK(allocated, size); in MsanAllocate() 131 return allocated; in MsanAllocate()
|
| /NextBSD/sys/crypto/via/ |
| HD | padlock_cipher.c | 170 int *allocated) in padlock_cipher_alloc() argument 191 *allocated = 0; in padlock_cipher_alloc() 195 *allocated = 1; in padlock_cipher_alloc() 208 int allocated, error; in padlock_cipher_process() local 210 buf = padlock_cipher_alloc(enccrd, crp, &allocated); in padlock_cipher_process() 247 if (allocated) { in padlock_cipher_process() 261 if (allocated) { in padlock_cipher_process() 274 if (allocated) { in padlock_cipher_process()
|
| /NextBSD/contrib/gcc/ |
| HD | varray.c | 40 int allocated; member 127 desc->allocated += data_size + VARRAY_HDR_SIZE; in varray_init() 157 desc->allocated += data_size - old_data_size; in varray_grow() 231 if (d->allocated) in print_statistics() 234 d->created, d->allocated, d->resized, d->copied); in print_statistics() 235 i->size += d->allocated; in print_statistics()
|
| HD | ggc-zone.c | 398 size_t allocated; member 1230 zone->allocated += size; in ggc_alloc_zone_stat() 1339 large_page->common.zone->allocated -= large_page->bytes; in ggc_free() 1352 page->zone->allocated -= size; in ggc_free() 1602 size_t allocated = 0; in sweep_pages() local 1629 allocated += lp->bytes; in sweep_pages() 1713 allocated += object - last_object; in sweep_pages() 1721 allocated += object - last_object; in sweep_pages() 1758 allocated += object - last_object; in sweep_pages() 1763 zone->allocated = allocated; in sweep_pages() [all …]
|
| HD | ggc-common.c | 797 size_t allocated; member 876 ggc_record_overhead (size_t allocated, size_t overhead, void *ptr, in ggc_record_overhead() argument 885 p->size = allocated + overhead; in ggc_record_overhead() 893 loc->allocated+=allocated; in ggc_record_overhead() 938 return ((l1->allocated + l1->overhead - l1->freed) - in cmp_statistic() 939 (l2->allocated + l2->overhead - l2->freed)); in cmp_statistic() 961 size_t collected = 0, freed = 0, allocated = 0, overhead = 0, times = 0; in dump_ggc_loc_statistics() local 977 allocated += d->allocated; in dump_ggc_loc_statistics() 986 if (d->allocated) in dump_ggc_loc_statistics() 999 (long)(d->allocated + d->overhead - d->freed - d->collected), in dump_ggc_loc_statistics() [all …]
|
| HD | alloc-pool.c | 72 int allocated; member 230 desc->allocated+=pool->elt_size; in pool_alloc() 330 if (d->allocated) in print_statistics() 333 d->created, d->allocated, d->peak, d->current); in print_statistics() 334 i->size += d->allocated; in print_statistics()
|
| /NextBSD/contrib/binutils/libiberty/ |
| HD | xmalloc.c | 121 size_t allocated; in xmalloc_failed() local 124 allocated = (char *) sbrk (0) - first_break; in xmalloc_failed() 126 allocated = (char *) sbrk (0) - (char *) &environ; in xmalloc_failed() 130 (unsigned long) size, (unsigned long) allocated); in xmalloc_failed()
|
| HD | dyn-string.c | 72 ds_struct_ptr->allocated = space; in dyn_string_init() 141 int new_allocated = ds->allocated; in dyn_string_resize() 150 if (new_allocated != ds->allocated) in dyn_string_resize() 152 ds->allocated = new_allocated; in dyn_string_resize() 155 ds->s = (char *) realloc (ds->s, ds->allocated); in dyn_string_resize() 162 ds->s = XRESIZEVEC (char, ds->s, ds->allocated); in dyn_string_resize()
|
| /NextBSD/contrib/gcclibs/libiberty/ |
| HD | xmalloc.c | 121 size_t allocated; in xmalloc_failed() local 124 allocated = (char *) sbrk (0) - first_break; in xmalloc_failed() 126 allocated = (char *) sbrk (0) - (char *) &environ; in xmalloc_failed() 130 (unsigned long) size, (unsigned long) allocated); in xmalloc_failed()
|
| HD | dyn-string.c | 72 ds_struct_ptr->allocated = space; in dyn_string_init() 141 int new_allocated = ds->allocated; in dyn_string_resize() 150 if (new_allocated != ds->allocated) in dyn_string_resize() 152 ds->allocated = new_allocated; in dyn_string_resize() 155 ds->s = (char *) realloc (ds->s, ds->allocated); in dyn_string_resize() 162 ds->s = XRESIZEVEC (char, ds->s, ds->allocated); in dyn_string_resize()
|
| /NextBSD/crypto/heimdal/lib/ntlm/ |
| HD | ntlm.c | 100 uint16_t allocated; member 223 CHECK(krb5_ret_uint16(sp, &buf->allocated), 0); in ret_sec_buffer() 234 CHECK(krb5_store_uint16(sp, buf->allocated), 0); in store_sec_buffer() 614 domain.allocated = domain.length; in heim_ntlm_encode_type1() 617 domain.allocated = 0; in heim_ntlm_encode_type1() 620 hostname.offset = domain.allocated + domain.offset; in heim_ntlm_encode_type1() 623 hostname.allocated = hostname.length; in heim_ntlm_encode_type1() 626 hostname.allocated = 0; in heim_ntlm_encode_type1() 763 targetname.allocated = targetname.length; in heim_ntlm_encode_type2() 765 targetinfo.offset = targetname.allocated + targetname.offset; in heim_ntlm_encode_type2() [all …]
|
| /NextBSD/contrib/compiler-rt/lib/lsan/ |
| HD | lsan_allocator.cc | 29 bool allocated : 8; // Must be first. member 159 if (!m->allocated) in PointsIntoChunk() 177 bool LsanMetadata::allocated() const { in allocated() function in __lsan::LsanMetadata 178 return reinterpret_cast<ChunkMetadata *>(metadata_)->allocated; in allocated() 206 if (m->allocated && (uptr)p < (uptr)chunk + m->requested_size) { in IgnoreObjectLocked()
|
| /NextBSD/sys/mips/beri/ |
| HD | fdt_ic_if.m | 48 * resource was allocated and the caller did not use the RF_ACTIVE 61 * @returns the interrupt which was allocated or @c NULL if no 62 * resource could be allocated 75 * Activate an interrupt previously allocated with FDT_IC_ALLOC_INTR(). 88 * Deactivate a resource previously allocated with FDT_IC_ALLOC_INTR(). 101 * Free an interupt allocated by the FDT_IC_ALLOC_INTR. 122 * @param _child the device which allocated the resource 153 * @param _child the device which allocated the resource 170 * @param _child the device which allocated the resource 202 * @param _child the device which allocated the resource
|
| /NextBSD/contrib/ncurses/ncurses/tinfo/ |
| HD | comp_scan.c | 166 static size_t allocated; in next_char() local 173 allocated = 0; in next_char() 201 if (used + (LEXBUFSIZ / 4) >= allocated) { in next_char() 202 allocated += (allocated + LEXBUFSIZ); in next_char() 203 result = typeRealloc(char, allocated, result); in next_char() 212 if (fgets(result + used, (int) (allocated - used), yyin) != 0) { in next_char() 224 _nc_STRCAT(result, "\n", allocated); in next_char()
|
| /NextBSD/contrib/compiler-rt/lib/asan/ |
| HD | asan_malloc_linux.cc | 49 static uptr allocated; in INTERCEPTOR() local 51 void *mem = (void*)&calloc_memory_for_dlsym[allocated]; in INTERCEPTOR() 52 allocated += size_in_words; in INTERCEPTOR() 53 CHECK(allocated < kCallocPoolSize); in INTERCEPTOR()
|
| /NextBSD/contrib/gcclibs/libcpp/ |
| HD | line-map.c | 35 set->allocated = 0; in linemap_init() 97 if (set->used == set->allocated) in linemap_add() 99 set->allocated = 2 * set->allocated + 256; in linemap_add() 100 set->maps = XRESIZEVEC (struct line_map, set->maps, set->allocated); in linemap_add()
|
| /NextBSD/sys/opencrypto/ |
| HD | criov.c | 198 int *allocated) in crypto_mbuftoiov() argument 204 *allocated = 0; in crypto_mbuftoiov() 222 *allocated = 1; in crypto_mbuftoiov() 234 if (*allocated) in crypto_mbuftoiov()
|