Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 20 of 20) sorted by relevance

/glibc-2.36/malloc/
Dobstack.c149 struct _obstack_chunk *chunk; /* points to new chunk */ in _obstack_begin() local
176 chunk = h->chunk = CALL_CHUNKFUN (h, h->chunk_size); in _obstack_begin()
177 if (!chunk) in _obstack_begin()
179 h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents, in _obstack_begin()
181 h->chunk_limit = chunk->limit in _obstack_begin()
182 = (char *) chunk + h->chunk_size; in _obstack_begin()
183 chunk->prev = 0; in _obstack_begin()
196 struct _obstack_chunk *chunk; /* points to new chunk */ in _obstack_begin_1() local
224 chunk = h->chunk = CALL_CHUNKFUN (h, h->chunk_size); in _obstack_begin_1()
225 if (!chunk) in _obstack_begin_1()
[all …]
Dobstack.h156 struct _obstack_chunk *chunk; /* address of current struct obstack_chunk */ member
291 (__o->chunk->prev == 0 \
292 && __o->next_free == __PTR_ALIGN ((char *) __o->chunk, \
293 __o->chunk->contents, \
397 if (__o1->next_free - (char *) __o1->chunk \
398 > __o1->chunk_limit - (char *) __o1->chunk) \
407 if (__obj > (void *) __o->chunk && __obj < (void *) __o->chunk_limit) \
420 ((h)->chunk->prev == 0 \
421 && (h)->next_free == __PTR_ALIGN ((char *) (h)->chunk, \
422 (h)->chunk->contents, \
[all …]
Dmalloc-debug.c602 mchunkptr chunk = NULL; in malloc_set_state() local
609 chunk = mem2chunk ((void *) (candidate + 1)); in malloc_set_state()
615 if (chunk == NULL) in malloc_set_state()
621 while (chunk < top) in malloc_set_state()
623 if (inuse (chunk)) in malloc_set_state()
626 size_t size = chunksize (chunk); in malloc_set_state()
627 set_head (chunk, size | IS_MMAPPED); in malloc_set_state()
629 chunk = next_chunk (chunk); in malloc_set_state()
Dmalloc.c3169 tcache_put (mchunkptr chunk, size_t tc_idx) in tcache_put() argument
3171 tcache_entry *e = (tcache_entry *) chunk2mem (chunk); in tcache_put()
/glibc-2.36/stdio-common/
Dtst-memstream-string.c38 char *chunk = xmalloc (chunk_size + 1); in run_one_size() local
49 chunk[j] = char_from_index(i + j); in run_one_size()
50 chunk[to_print] = '\0'; in run_one_size()
51 fprintf (mem.out, "%s", chunk); /* Needs -fno-builtin-fprintf. */ in run_one_size()
53 written += strlen(chunk); in run_one_size()
65 free (chunk); in run_one_size()
/glibc-2.36/sysdeps/mips/
Dmemcpy.S150 # define PREFETCH_FOR_LOAD(chunk, reg) \ argument
151 pref PREFETCH_LOAD_HINT, (chunk)*64(reg); \
152 pref PREFETCH_LOAD_HINT, ((chunk)*64)+32(reg)
153 # define PREFETCH_FOR_STORE(chunk, reg) \ argument
154 pref PREFETCH_STORE_HINT, (chunk)*64(reg); \
155 pref PREFETCH_STORE_HINT, ((chunk)*64)+32(reg)
158 # define PREFETCH_FOR_LOAD(chunk, reg) \ argument
159 pref PREFETCH_LOAD_HINT, (chunk)*32(reg)
160 # define PREFETCH_FOR_STORE(chunk, reg) \ argument
161 pref PREFETCH_STORE_HINT, (chunk)*32(reg)
Dmemset.S119 # define PREFETCH_FOR_STORE(chunk, reg) \ argument
120 pref PREFETCH_STORE_HINT, (chunk)*64(reg); \
121 pref PREFETCH_STORE_HINT, ((chunk)*64)+32(reg)
124 # define PREFETCH_FOR_STORE(chunk, reg) \ argument
125 pref PREFETCH_STORE_HINT, (chunk)*32(reg)
/glibc-2.36/manual/
Dmemory.texi281 up chunk sizes to powers of two, neither for large nor for small sizes.
292 Therefore, it cannot happen that a large chunk becomes ``locked'' in between
716 @c chunk_is_mmapped ok, chunk bits not modified after allocation
1212 This is the minimum size (in bytes) of the top-most, releasable chunk
1445 This is the size of the top-most releasable chunk that normally
1940 The obstack library obtains a new chunk whenever you allocate an object
1941 that won't fit in the previous chunk. Since the obstack library manages
1944 get a chunk. Usually you supply a function which uses @code{malloc}
1945 directly or indirectly. You must also supply a function to free a chunk.
2066 it needs to allocate a new chunk of memory; it calls
[all …]
Dtunables.texi184 releasable chunk in an arena that will trigger a system call in order to return
240 to the number of bins times the chunk count in each bin times the size
241 of each chunk. With defaults, the approximate maximum overhead of the
/glibc-2.36/ChangeLog.old/
DChangeLog.15207 <mwdalton@stanford.edu> [BZ #457]. Add further checks for top chunk.
698 * malloc/malloc.c (_int_malloc): Check for corruption of chunk
2917 * malloc/hooks.c (top_check): Print top chunk corruption as normal
DChangeLog.107590 * malloc/malloc.c: Add missing chunk of patch from 1999-07-04.
11895 the real end of the chunk, not some random point inbetween.
12771 that it can the chunk is properly instrumented when malloc
DChangeLog.114395 * malloc/malloc.c (new_heap): Try harder to get an aligned chunk of
5584 (malloc_extend_top): Convert brk to chunk using chunk_at_offset.
12450 inside an obstack chunk.
DChangeLog.142231 * nis/ypclnt.c (__yp_bind_client_create): New, small chunk
11847 pointer, not of the computed chunk. Bug report from Carlos
15212 closed objects occupied a trailing contiguous chunk of static TLS area.
DChangeLog.192332 * malloc/malloc.c (__malloc_info): Account for top chunk.
6054 corruption when inserting unsorted chunk.
8826 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
14357 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
DChangeLog.126362 * malloc/malloc.c (new_heap): When allocating large chunk aligned
DChangeLog.84284 corruption of the top chunk are now detected much more reliably.
DChangeLog.1815234 * malloc/malloc.c: Update chunk layout comments.
20339 mmapped chunk.
45220 * Makerules: Move gnu/lib-names.h generation chunk up, to right after
45221 gen-as-const-headers chunk. Add a big scare comment after the last
77317 new chunk size with MALLOC_ALIGN_MASK.
81169 * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
81171 (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
DChangeLog.710196 failing to allocate a new chunk, also try the main_arena. It may
/glibc-2.36/
DNEWS1800 unsorted chunk
/glibc-2.36/posix/
Dtst-regex.input4284 corruption of the top chunk are now detected much more reliably.