File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2424// The two crates we link to here, `std` and `rustc_driver`, are both dynamic
2525// libraries. So we must reference jemalloc symbols one way or another, because
2626// 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.
2736
2837#[ unix_sigpipe = "sig_dfl" ]
2938fn main ( ) {
You can’t perform that action at this time.
0 commit comments