no need to provide valloc and pvalloc on Android
This commit is contained in:
parent
1eed432b9a
commit
491ce6b0b1
@ -1421,6 +1421,7 @@ EXPORT void *h_aligned_alloc(size_t alignment, size_t size) {
|
|||||||
|
|
||||||
EXPORT void *h_memalign(size_t alignment, size_t size) ALIAS(h_aligned_alloc);
|
EXPORT void *h_memalign(size_t alignment, size_t size) ALIAS(h_aligned_alloc);
|
||||||
|
|
||||||
|
#ifndef __ANDROID__
|
||||||
EXPORT void *h_valloc(size_t size) {
|
EXPORT void *h_valloc(size_t size) {
|
||||||
init();
|
init();
|
||||||
thread_unseal_metadata();
|
thread_unseal_metadata();
|
||||||
@ -1443,6 +1444,7 @@ EXPORT void *h_pvalloc(size_t size) {
|
|||||||
thread_seal_metadata();
|
thread_seal_metadata();
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
EXPORT void h_free(void *p) {
|
EXPORT void h_free(void *p) {
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
|
@ -69,8 +69,10 @@ int h_malloc_info(int options, FILE *fp);
|
|||||||
|
|
||||||
// obsolete glibc extensions
|
// obsolete glibc extensions
|
||||||
void *h_memalign(size_t alignment, size_t size);
|
void *h_memalign(size_t alignment, size_t size);
|
||||||
|
#ifndef __ANDROID__
|
||||||
void *h_valloc(size_t size);
|
void *h_valloc(size_t size);
|
||||||
void *h_pvalloc(size_t size);
|
void *h_pvalloc(size_t size);
|
||||||
|
#endif
|
||||||
#ifdef __GLIBC__
|
#ifdef __GLIBC__
|
||||||
void h_cfree(void *ptr);
|
void h_cfree(void *ptr);
|
||||||
void *h_malloc_get_state(void);
|
void *h_malloc_get_state(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user