This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +17
-21
lines changed Expand file tree Collapse file tree 4 files changed +17
-21
lines changed Original file line number Diff line number Diff line change @@ -1897,6 +1897,17 @@ version = "0.4.6"
18971897source = " registry+https://github.com/rust-lang/crates.io-index"
18981898checksum = " dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6"
18991899
1900+ [[package ]]
1901+ name = " jemalloc-sys"
1902+ version = " 0.5.0+5.3.0"
1903+ source = " registry+https://github.com/rust-lang/crates.io-index"
1904+ checksum = " f655c3ecfa6b0d03634595b4b54551d4bd5ac208b9e0124873949a7ab168f70b"
1905+ dependencies = [
1906+ " cc" ,
1907+ " fs_extra" ,
1908+ " libc" ,
1909+ ]
1910+
19001911[[package ]]
19011912name = " jobserver"
19021913version = " 0.1.24"
@@ -3360,9 +3371,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
33603371name = " rustc-main"
33613372version = " 0.0.0"
33623373dependencies = [
3374+ " jemalloc-sys" ,
33633375 " rustc_codegen_ssa" ,
33643376 " rustc_driver" ,
3365- " tikv-jemalloc-sys" ,
33663377]
33673378
33683379[[package ]]
@@ -5234,17 +5245,6 @@ dependencies = [
52345245name = " tier-check"
52355246version = " 0.1.0"
52365247
5237- [[package ]]
5238- name = " tikv-jemalloc-sys"
5239- version = " 0.4.1+5.2.1-patched"
5240- source = " registry+https://github.com/rust-lang/crates.io-index"
5241- checksum = " 8a26331b05179d4cb505c8d6814a7e18d298972f0a551b0e3cefccff927f86d3"
5242- dependencies = [
5243- " cc" ,
5244- " fs_extra" ,
5245- " libc" ,
5246- ]
5247-
52485248[[package ]]
52495249name = " time"
52505250version = " 0.1.43"
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ rustc_driver = { path = "../rustc_driver" }
1010# crate is intended to be used by codegen backends, which may not be in-tree.
1111rustc_codegen_ssa = { path = " ../rustc_codegen_ssa" }
1212
13- [dependencies .tikv- jemalloc-sys ]
14- version = ' 0.4.0 '
13+ [dependencies .jemalloc-sys ]
14+ version = " 0.5.0 "
1515optional = true
1616features = [' unprefixed_malloc_on_supported_platforms' ]
1717
1818[features ]
19- jemalloc = [' tikv- jemalloc-sys' ]
19+ jemalloc = [' jemalloc-sys' ]
2020llvm = [' rustc_driver/llvm' ]
2121max_level_info = [' rustc_driver/max_level_info' ]
2222rustc_use_parallel_compiler = [' rustc_driver/rustc_use_parallel_compiler' ]
Original file line number Diff line number Diff line change 2222// The two crates we link to here, `std` and `rustc_driver`, are both dynamic
2323// libraries. So we must reference jemalloc symbols one way or another, because
2424// this file is the only object code in the rustc executable.
25- #[ cfg( feature = "tikv-jemalloc-sys" ) ]
26- use tikv_jemalloc_sys as jemalloc_sys;
2725
2826fn main ( ) {
2927 // See the comment at the top of this file for an explanation of this.
30- #[ cfg( feature = "tikv- jemalloc-sys" ) ]
28+ #[ cfg( feature = "jemalloc-sys" ) ]
3129 {
3230 use std:: os:: raw:: { c_int, c_void} ;
3331
Original file line number Diff line number Diff line change @@ -70,9 +70,7 @@ extern crate test;
7070// See docs in https://github.com/rust-lang/rust/blob/master/compiler/rustc/src/main.rs
7171// about jemalloc.
7272#[ cfg( feature = "jemalloc" ) ]
73- extern crate tikv_jemalloc_sys;
74- #[ cfg( feature = "jemalloc" ) ]
75- use tikv_jemalloc_sys as jemalloc_sys;
73+ extern crate jemalloc_sys;
7674
7775use std:: default:: Default ;
7876use std:: env:: { self , VarError } ;
You can’t perform that action at this time.
0 commit comments