@@ -7,23 +7,23 @@ fn main() {
7
7
// dynamic libraries. That means to pull in jemalloc we need to actually
8
8
// reference allocation symbols one way or another (as this file is the only
9
9
// object code in the rustc executable).
10
- #[ cfg( feature = "jemalloc -sys" ) ]
10
+ #[ cfg( feature = "libmimalloc -sys" ) ]
11
11
{
12
12
use std:: os:: raw:: { c_int, c_void} ;
13
13
14
14
#[ used]
15
- static _F1: unsafe extern "C" fn ( usize , usize ) -> * mut c_void = jemalloc_sys :: calloc ;
15
+ static _F1: unsafe extern "C" fn ( usize , usize ) -> * mut c_void = libmimalloc_sys :: mi_calloc ;
16
16
#[ used]
17
17
static _F2: unsafe extern "C" fn ( * mut * mut c_void , usize , usize ) -> c_int =
18
- jemalloc_sys :: posix_memalign ;
18
+ libmimalloc_sys :: mi_posix_memalign ;
19
19
#[ used]
20
- static _F3: unsafe extern "C" fn ( usize , usize ) -> * mut c_void = jemalloc_sys :: aligned_alloc ;
20
+ static _F3: unsafe extern "C" fn ( usize , usize ) -> * mut c_void = libmimalloc_sys :: mi_aligned_alloc ;
21
21
#[ used]
22
- static _F4: unsafe extern "C" fn ( usize ) -> * mut c_void = jemalloc_sys :: malloc ;
22
+ static _F4: unsafe extern "C" fn ( usize ) -> * mut c_void = libmimalloc_sys :: mi_malloc ;
23
23
#[ used]
24
- static _F5: unsafe extern "C" fn ( * mut c_void , usize ) -> * mut c_void = jemalloc_sys :: realloc ;
24
+ static _F5: unsafe extern "C" fn ( * mut c_void , usize ) -> * mut c_void = libmimalloc_sys :: mi_realloc ;
25
25
#[ used]
26
- static _F6: unsafe extern "C" fn ( * mut c_void ) = jemalloc_sys :: free ;
26
+ static _F6: unsafe extern "C" fn ( * mut c_void ) = libmimalloc_sys :: mi_free ;
27
27
}
28
28
29
29
rustc_driver:: set_sigpipe_handler ( ) ;
0 commit comments