mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
malloc: Remove the internal_function attribute
This commit is contained in:
15
ChangeLog
15
ChangeLog
@ -1,3 +1,18 @@
|
|||||||
|
2017-08-31 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* malloc/arena.c (__malloc_fork_lock_parent)
|
||||||
|
(__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
|
||||||
|
(next_env_entry, new_heap, heap_trim, arena_get2): Remove
|
||||||
|
internal_function from defintions.
|
||||||
|
* malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
|
||||||
|
* malloc/malloc-internal.h (__malloc_fork_lock_parent)
|
||||||
|
(__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
|
||||||
|
internal_function from declarations.
|
||||||
|
* malloc/malloc.c (internal_function): Do not define.
|
||||||
|
(mem2mem_check): Remove internal_function from declaration.
|
||||||
|
(munmap_chunk, mremap_chunk): Remove internal_function.
|
||||||
|
* malloc/mtrace.c (tr_where): Likewise.
|
||||||
|
|
||||||
2017-08-31 Florian Weimer <fweimer@redhat.com>
|
2017-08-31 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
* include/rpc/pmap_clnt.h (__get_socket): Remove
|
* include/rpc/pmap_clnt.h (__get_socket): Remove
|
||||||
|
@ -141,7 +141,6 @@ int __malloc_initialized = -1;
|
|||||||
subsystem. */
|
subsystem. */
|
||||||
|
|
||||||
void
|
void
|
||||||
internal_function
|
|
||||||
__malloc_fork_lock_parent (void)
|
__malloc_fork_lock_parent (void)
|
||||||
{
|
{
|
||||||
if (__malloc_initialized < 1)
|
if (__malloc_initialized < 1)
|
||||||
@ -162,7 +161,6 @@ __malloc_fork_lock_parent (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
internal_function
|
|
||||||
__malloc_fork_unlock_parent (void)
|
__malloc_fork_unlock_parent (void)
|
||||||
{
|
{
|
||||||
if (__malloc_initialized < 1)
|
if (__malloc_initialized < 1)
|
||||||
@ -179,7 +177,6 @@ __malloc_fork_unlock_parent (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
internal_function
|
|
||||||
__malloc_fork_unlock_child (void)
|
__malloc_fork_unlock_child (void)
|
||||||
{
|
{
|
||||||
if (__malloc_initialized < 1)
|
if (__malloc_initialized < 1)
|
||||||
@ -246,7 +243,6 @@ TUNABLE_CALLBACK_FNDECL (set_tcache_unsorted_limit, size_t)
|
|||||||
extern char **_environ;
|
extern char **_environ;
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
internal_function
|
|
||||||
next_env_entry (char ***position)
|
next_env_entry (char ***position)
|
||||||
{
|
{
|
||||||
char **current = *position;
|
char **current = *position;
|
||||||
@ -458,7 +454,6 @@ static char *aligned_heap_area;
|
|||||||
of the page size. */
|
of the page size. */
|
||||||
|
|
||||||
static heap_info *
|
static heap_info *
|
||||||
internal_function
|
|
||||||
new_heap (size_t size, size_t top_pad)
|
new_heap (size_t size, size_t top_pad)
|
||||||
{
|
{
|
||||||
size_t pagesize = GLRO (dl_pagesize);
|
size_t pagesize = GLRO (dl_pagesize);
|
||||||
@ -602,7 +597,6 @@ shrink_heap (heap_info *h, long diff)
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static int
|
static int
|
||||||
internal_function
|
|
||||||
heap_trim (heap_info *heap, size_t pad)
|
heap_trim (heap_info *heap, size_t pad)
|
||||||
{
|
{
|
||||||
mstate ar_ptr = heap->ar_ptr;
|
mstate ar_ptr = heap->ar_ptr;
|
||||||
@ -880,7 +874,6 @@ out:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static mstate
|
static mstate
|
||||||
internal_function
|
|
||||||
arena_get2 (size_t size, mstate avoid_arena)
|
arena_get2 (size_t size, mstate avoid_arena)
|
||||||
{
|
{
|
||||||
mstate a;
|
mstate a;
|
||||||
|
@ -132,7 +132,6 @@ malloc_check_get_size (mchunkptr p)
|
|||||||
into a user pointer with requested size req_sz. */
|
into a user pointer with requested size req_sz. */
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
internal_function
|
|
||||||
mem2mem_check (void *ptr, size_t req_sz)
|
mem2mem_check (void *ptr, size_t req_sz)
|
||||||
{
|
{
|
||||||
mchunkptr p;
|
mchunkptr p;
|
||||||
@ -166,7 +165,6 @@ mem2mem_check (void *ptr, size_t req_sz)
|
|||||||
pointer. If the provided pointer is not valid, return NULL. */
|
pointer. If the provided pointer is not valid, return NULL. */
|
||||||
|
|
||||||
static mchunkptr
|
static mchunkptr
|
||||||
internal_function
|
|
||||||
mem2chunk_check (void *mem, unsigned char **magic_p)
|
mem2chunk_check (void *mem, unsigned char **magic_p)
|
||||||
{
|
{
|
||||||
mchunkptr p;
|
mchunkptr p;
|
||||||
|
@ -63,13 +63,13 @@
|
|||||||
|
|
||||||
|
|
||||||
/* Called in the parent process before a fork. */
|
/* Called in the parent process before a fork. */
|
||||||
void __malloc_fork_lock_parent (void) internal_function attribute_hidden;
|
void __malloc_fork_lock_parent (void) attribute_hidden;
|
||||||
|
|
||||||
/* Called in the parent process after a fork. */
|
/* Called in the parent process after a fork. */
|
||||||
void __malloc_fork_unlock_parent (void) internal_function attribute_hidden;
|
void __malloc_fork_unlock_parent (void) attribute_hidden;
|
||||||
|
|
||||||
/* Called in the child process after a fork. */
|
/* Called in the child process after a fork. */
|
||||||
void __malloc_fork_unlock_child (void) internal_function attribute_hidden;
|
void __malloc_fork_unlock_child (void) attribute_hidden;
|
||||||
|
|
||||||
/* Set *RESULT to LEFT * RIGHT. Return true if the multiplication
|
/* Set *RESULT to LEFT * RIGHT. Return true if the multiplication
|
||||||
overflowed. */
|
overflowed. */
|
||||||
|
@ -999,13 +999,6 @@ int __posix_memalign(void **, size_t, size_t);
|
|||||||
#define RETURN_ADDRESS(X_) (NULL)
|
#define RETURN_ADDRESS(X_) (NULL)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* On some platforms we can compile internal, not exported functions better.
|
|
||||||
Let the environment provide a macro and define it to be empty if it
|
|
||||||
is not available. */
|
|
||||||
#ifndef internal_function
|
|
||||||
# define internal_function
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Forward declarations. */
|
/* Forward declarations. */
|
||||||
struct malloc_chunk;
|
struct malloc_chunk;
|
||||||
typedef struct malloc_chunk* mchunkptr;
|
typedef struct malloc_chunk* mchunkptr;
|
||||||
@ -1021,11 +1014,11 @@ static void* _mid_memalign(size_t, size_t, void *);
|
|||||||
|
|
||||||
static void malloc_printerr(const char *str) __attribute__ ((noreturn));
|
static void malloc_printerr(const char *str) __attribute__ ((noreturn));
|
||||||
|
|
||||||
static void* internal_function mem2mem_check(void *p, size_t sz);
|
static void* mem2mem_check(void *p, size_t sz);
|
||||||
static void top_check(void);
|
static void top_check(void);
|
||||||
static void internal_function munmap_chunk(mchunkptr p);
|
static void munmap_chunk(mchunkptr p);
|
||||||
#if HAVE_MREMAP
|
#if HAVE_MREMAP
|
||||||
static mchunkptr internal_function mremap_chunk(mchunkptr p, size_t new_size);
|
static mchunkptr mremap_chunk(mchunkptr p, size_t new_size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void* malloc_check(size_t sz, const void *caller);
|
static void* malloc_check(size_t sz, const void *caller);
|
||||||
@ -2830,7 +2823,6 @@ systrim (size_t pad, mstate av)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
internal_function
|
|
||||||
munmap_chunk (mchunkptr p)
|
munmap_chunk (mchunkptr p)
|
||||||
{
|
{
|
||||||
INTERNAL_SIZE_T size = chunksize (p);
|
INTERNAL_SIZE_T size = chunksize (p);
|
||||||
@ -2864,7 +2856,6 @@ munmap_chunk (mchunkptr p)
|
|||||||
#if HAVE_MREMAP
|
#if HAVE_MREMAP
|
||||||
|
|
||||||
static mchunkptr
|
static mchunkptr
|
||||||
internal_function
|
|
||||||
mremap_chunk (mchunkptr p, size_t new_size)
|
mremap_chunk (mchunkptr p, size_t new_size)
|
||||||
{
|
{
|
||||||
size_t pagesize = GLRO (dl_pagesize);
|
size_t pagesize = GLRO (dl_pagesize);
|
||||||
|
@ -73,7 +73,7 @@ tr_break (void)
|
|||||||
}
|
}
|
||||||
libc_hidden_def (tr_break)
|
libc_hidden_def (tr_break)
|
||||||
|
|
||||||
static void internal_function
|
static void
|
||||||
tr_where (const void *caller, Dl_info *info)
|
tr_where (const void *caller, Dl_info *info)
|
||||||
{
|
{
|
||||||
if (caller != NULL)
|
if (caller != NULL)
|
||||||
|
Reference in New Issue
Block a user