File tree 7 files changed +23
-19
lines changed
7 files changed +23
-19
lines changed Original file line number Diff line number Diff line change @@ -1877,16 +1877,6 @@ version = "1.0.11"
1877
1877
source = " registry+https://github.com/rust-lang/crates.io-index"
1878
1878
checksum = " 49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
1879
1879
1880
- [[package ]]
1881
- name = " jemalloc-sys"
1882
- version = " 0.5.4+5.3.0-patched"
1883
- source = " registry+https://github.com/rust-lang/crates.io-index"
1884
- checksum = " ac6c1946e1cea1788cbfde01c993b52a10e2da07f4bac608228d1bed20bfebf2"
1885
- dependencies = [
1886
- " cc" ,
1887
- " libc" ,
1888
- ]
1889
-
1890
1880
[[package ]]
1891
1881
name = " jobserver"
1892
1882
version = " 0.1.32"
@@ -2287,7 +2277,6 @@ dependencies = [
2287
2277
" ctrlc" ,
2288
2278
" directories" ,
2289
2279
" getrandom" ,
2290
- " jemalloc-sys" ,
2291
2280
" libc" ,
2292
2281
" libffi" ,
2293
2282
" libloading" ,
@@ -2297,6 +2286,7 @@ dependencies = [
2297
2286
" rustc_version" ,
2298
2287
" smallvec" ,
2299
2288
" tempfile" ,
2289
+ " tikv-jemalloc-sys" ,
2300
2290
" ui_test" ,
2301
2291
" windows-sys 0.52.0" ,
2302
2292
]
@@ -3151,12 +3141,12 @@ checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152"
3151
3141
name = " rustc-main"
3152
3142
version = " 0.0.0"
3153
3143
dependencies = [
3154
- " jemalloc-sys" ,
3155
3144
" rustc_codegen_ssa" ,
3156
3145
" rustc_driver" ,
3157
3146
" rustc_driver_impl" ,
3158
3147
" rustc_smir" ,
3159
3148
" stable_mir" ,
3149
+ " tikv-jemalloc-sys" ,
3160
3150
]
3161
3151
3162
3152
[[package ]]
@@ -5260,6 +5250,16 @@ dependencies = [
5260
5250
name = " tier-check"
5261
5251
version = " 0.1.0"
5262
5252
5253
+ [[package ]]
5254
+ name = " tikv-jemalloc-sys"
5255
+ version = " 0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7"
5256
+ source = " registry+https://github.com/rust-lang/crates.io-index"
5257
+ checksum = " cd3c60906412afa9c2b5b5a48ca6a5abe5736aec9eb48ad05037a677e52e4e2d"
5258
+ dependencies = [
5259
+ " cc" ,
5260
+ " libc" ,
5261
+ ]
5262
+
5263
5263
[[package ]]
5264
5264
name = " time"
5265
5265
version = " 0.3.36"
Original file line number Diff line number Diff line change @@ -20,14 +20,14 @@ rustc_smir = { path = "../rustc_smir" }
20
20
stable_mir = { path = " ../stable_mir" }
21
21
# tidy-alphabetical-end
22
22
23
- [dependencies .jemalloc-sys ]
24
- version = " 0.5 .0"
23
+ [dependencies .tikv- jemalloc-sys ]
24
+ version = " 0.6 .0"
25
25
optional = true
26
26
features = [' unprefixed_malloc_on_supported_platforms' ]
27
27
28
28
[features ]
29
29
# tidy-alphabetical-start
30
- jemalloc = [' dep:jemalloc-sys' ]
30
+ jemalloc = [' dep:tikv- jemalloc-sys' ]
31
31
llvm = [' rustc_driver_impl/llvm' ]
32
32
max_level_info = [' rustc_driver_impl/max_level_info' ]
33
33
rustc_randomized_layouts = [' rustc_driver_impl/rustc_randomized_layouts' ]
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ fn main() {
43
43
{
44
44
use std:: os:: raw:: { c_int, c_void} ;
45
45
46
+ use tikv_jemalloc_sys as jemalloc_sys;
47
+
46
48
#[ used]
47
49
static _F1: unsafe extern "C" fn ( usize , usize ) -> * mut c_void = jemalloc_sys:: calloc;
48
50
#[ used]
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ extern crate test;
68
68
// See docs in https://github.com/rust-lang/rust/blob/master/compiler/rustc/src/main.rs
69
69
// about jemalloc.
70
70
#[ cfg( feature = "jemalloc" ) ]
71
- extern crate jemalloc_sys;
71
+ extern crate tikv_jemalloc_sys as jemalloc_sys;
72
72
73
73
use std:: env:: { self , VarError } ;
74
74
use std:: io:: { self , IsTerminal } ;
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ directories = "5"
31
31
# Copied from `compiler/rustc/Cargo.toml`.
32
32
# But only for some targets, it fails for others. Rustc configures this in its CI, but we can't
33
33
# easily use that since we support of-tree builds.
34
- [target .'cfg(any(target_os = "linux", target_os = "macos"))' .dependencies .jemalloc-sys ]
35
- version = " 0.5 .0"
34
+ [target .'cfg(any(target_os = "linux", target_os = "macos"))' .dependencies .tikv- jemalloc-sys ]
35
+ version = " 0.6 .0"
36
36
features = [' unprefixed_malloc_on_supported_platforms' ]
37
37
38
38
[target .'cfg(unix)' .dependencies ]
Original file line number Diff line number Diff line change @@ -316,6 +316,8 @@ fn jemalloc_magic() {
316
316
// See there for further comments.
317
317
use std:: os:: raw:: { c_int, c_void} ;
318
318
319
+ use tikv_jemalloc_sys as jemalloc_sys;
320
+
319
321
#[ used]
320
322
static _F1: unsafe extern "C" fn ( usize , usize ) -> * mut c_void = jemalloc_sys:: calloc;
321
323
#[ used]
Original file line number Diff line number Diff line change @@ -307,7 +307,6 @@ const PERMITTED_RUSTC_DEPENDENCIES: &[&str] = &[
307
307
"intl_pluralrules" ,
308
308
"itertools" ,
309
309
"itoa" ,
310
- "jemalloc-sys" ,
311
310
"jobserver" ,
312
311
"lazy_static" ,
313
312
"leb128" ,
@@ -392,6 +391,7 @@ const PERMITTED_RUSTC_DEPENDENCIES: &[&str] = &[
392
391
"thiserror-impl" ,
393
392
"thorin-dwp" ,
394
393
"thread_local" ,
394
+ "tikv-jemalloc-sys" ,
395
395
"time" ,
396
396
"time-core" ,
397
397
"time-macros" ,
You can’t perform that action at this time.
0 commit comments