mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Remove __morecore and __default_morecore
Make the __morecore and __default_morecore symbols compat-only and remove their declarations from the API. Also, include morecore.c directly into malloc.c; this should ideally get merged into malloc in a future cleanup. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
@ -384,12 +384,11 @@ __malloc_assert (const char *assertion, const char *file, unsigned int line,
|
||||
#define TRIM_FASTBINS 0
|
||||
#endif
|
||||
|
||||
|
||||
/* Definition for getting more memory from the OS. */
|
||||
#define MORECORE (*__morecore)
|
||||
#include "morecore.c"
|
||||
|
||||
#define MORECORE (*__glibc_morecore)
|
||||
#define MORECORE_FAILURE 0
|
||||
void * __default_morecore (ptrdiff_t);
|
||||
void *(*__morecore)(ptrdiff_t) = __default_morecore;
|
||||
|
||||
/* Memory tagging. */
|
||||
|
||||
|
Reference in New Issue
Block a user