Home
last modified time | relevance | path

Searched refs:allocated (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/NextBSD/contrib/compiler-rt/lib/sanitizer_common/tests/
HDstandalone_malloc_test.cc21 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 …]
HDsanitizer_allocator_test.cc88 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/
HDarchive_write_disk_set_standard_lookup.c125 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/
HDenviron.c38 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/
HDenv.c191 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/
HDthr_spec.c65 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/
HDsanitizer_symbolizer_libbacktrace.cc45 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()
HDsanitizer_common_libcdep.cc87 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/
HDmsan_allocator.cc108 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/
HDpadlock_cipher.c170 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/
HDvarray.c40 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()
HDggc-zone.c398 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 …]
HDggc-common.c797 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 …]
HDalloc-pool.c72 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/
HDxmalloc.c121 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()
HDdyn-string.c72 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/
HDxmalloc.c121 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()
HDdyn-string.c72 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/
HDntlm.c100 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/
HDlsan_allocator.cc29 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/
HDfdt_ic_if.m48 * 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/
HDcomp_scan.c166 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/
HDasan_malloc_linux.cc49 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/
HDline-map.c35 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/
HDcriov.c198 int *allocated) in crypto_mbuftoiov() argument
204 *allocated = 0; in crypto_mbuftoiov()
222 *allocated = 1; in crypto_mbuftoiov()
234 if (*allocated) in crypto_mbuftoiov()

12345678910>>...18