File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 24
24
// The two crates we link to here, `std` and `rustc_driver`, are both dynamic
25
25
// libraries. So we must reference jemalloc symbols one way or another, because
26
26
// this file is the only object code in the rustc executable.
27
+ //
28
+ // NOTE: if you are reading this comment because you want to set a custom `global_allocator` for
29
+ // benchmarking, consider using the benchmarks in the `rustc-perf` collector suite instead:
30
+ // https://github.com/rust-lang/rustc-perf/blob/master/collector/README.md#profiling
31
+ //
32
+ // NOTE: if you are reading this comment because you want to replace jemalloc with another allocator
33
+ // to compare their performance, see
34
+ // https://github.com/rust-lang/rust/commit/b90cfc887c31c3e7a9e6d462e2464db1fe506175#diff-43914724af6e464c1da2171e4a9b6c7e607d5bc1203fa95c0ab85be4122605ef
35
+ // for an example of how to do so.
27
36
28
37
#[ unix_sigpipe = "sig_dfl" ]
29
38
fn main ( ) {
You can’t perform that action at this time.
0 commit comments