std: Prefix jemalloc symbols on iOS
Similar to OSX, these symbols are prefixed by default.
This commit is contained in:
@@ -45,19 +45,19 @@ extern {}
|
|||||||
// explicitly request it), and on Android we explicitly request it as
|
// explicitly request it), and on Android we explicitly request it as
|
||||||
// unprefixing cause segfaults (mismatches in allocators).
|
// unprefixing cause segfaults (mismatches in allocators).
|
||||||
extern {
|
extern {
|
||||||
#[cfg_attr(any(target_os = "macos", target_os = "android"),
|
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
|
||||||
link_name = "je_mallocx")]
|
link_name = "je_mallocx")]
|
||||||
fn mallocx(size: size_t, flags: c_int) -> *mut c_void;
|
fn mallocx(size: size_t, flags: c_int) -> *mut c_void;
|
||||||
#[cfg_attr(any(target_os = "macos", target_os = "android"),
|
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
|
||||||
link_name = "je_rallocx")]
|
link_name = "je_rallocx")]
|
||||||
fn rallocx(ptr: *mut c_void, size: size_t, flags: c_int) -> *mut c_void;
|
fn rallocx(ptr: *mut c_void, size: size_t, flags: c_int) -> *mut c_void;
|
||||||
#[cfg_attr(any(target_os = "macos", target_os = "android"),
|
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
|
||||||
link_name = "je_xallocx")]
|
link_name = "je_xallocx")]
|
||||||
fn xallocx(ptr: *mut c_void, size: size_t, extra: size_t, flags: c_int) -> size_t;
|
fn xallocx(ptr: *mut c_void, size: size_t, extra: size_t, flags: c_int) -> size_t;
|
||||||
#[cfg_attr(any(target_os = "macos", target_os = "android"),
|
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
|
||||||
link_name = "je_sdallocx")]
|
link_name = "je_sdallocx")]
|
||||||
fn sdallocx(ptr: *mut c_void, size: size_t, flags: c_int);
|
fn sdallocx(ptr: *mut c_void, size: size_t, flags: c_int);
|
||||||
#[cfg_attr(any(target_os = "macos", target_os = "android"),
|
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
|
||||||
link_name = "je_nallocx")]
|
link_name = "je_nallocx")]
|
||||||
fn nallocx(size: size_t, flags: c_int) -> size_t;
|
fn nallocx(size: size_t, flags: c_int) -> size_t;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user