Skip to content

Commit 0b77e50

Browse files
committed
Auto merge of rust-lang#30985 - alexcrichton:downgrade-jemaloc, r=brson
We've been seeing a lot of timeouts in tests on the bots and investigation ended pointing to jemalloc/jemalloc#315 as the culprit. Unfortunately it looks like that doesn't seem to have a fix on the way soon, so let's temporarily downgrade back to the previous version of jemalloc we were using (where rust-lang#30434 was the most recent upgrade)
2 parents 292af75 + 884de56 commit 0b77e50

6 files changed

+14
-7
lines changed

configure

+8-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ CFG_SELF="$0"
550550
CFG_CONFIGURE_ARGS="$@"
551551

552552

553-
case "${CFG_SRC_DIR}" in
553+
case "${CFG_SRC_DIR}" in
554554
*\ * )
555555
err "The path to the rust source directory contains spaces, which is not supported"
556556
;;
@@ -892,6 +892,13 @@ then
892892
CFG_DISABLE_JEMALLOC=1
893893
fi
894894

895+
if [ $CFG_OSTYPE = pc-windows-gnu ]
896+
then
897+
# FIXME(#31030) - there's not a great reason to disable jemalloc here
898+
step_msg "on Windows, disabling jemalloc"
899+
CFG_DISABLE_JEMALLOC=1
900+
fi
901+
895902
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
896903
# system, so if we find that gcc is clang, we should just use clang directly.
897904
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]

src/jemalloc

Submodule jemalloc updated 102 files

src/test/compile-fail/allocator-dylib-is-system.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-msvc everything is the system allocator on msvc
11+
// ignore-windows everything is the system allocator on windows
1212
// ignore-musl no dylibs on musl yet
1313
// ignore-bitrig no jemalloc on bitrig
1414
// ignore-openbsd no jemalloc on openbsd

src/test/compile-fail/allocator-rust-dylib-is-jemalloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-msvc everything is the system allocator on msvc
11+
// ignore-windows everything is the system allocator on windows
1212
// ignore-musl no dylibs on musl right now
1313
// ignore-bitrig no jemalloc on bitrig
1414
// ignore-openbsd no jemalloc on openbsd

src/test/run-pass/allocator-default.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
#![feature(alloc_jemalloc, alloc_system)]
1212

13-
#[cfg(not(any(target_env = "msvc", target_os = "bitrig", target_os = "openbsd")))]
13+
#[cfg(not(any(windows, target_os = "bitrig", target_os = "openbsd")))]
1414
extern crate alloc_jemalloc;
15-
#[cfg(any(target_env = "msvc", target_os = "bitrig", target_os = "openbsd"))]
15+
#[cfg(any(windows, target_os = "bitrig", target_os = "openbsd"))]
1616
extern crate alloc_system;
1717

1818
fn main() {

src/test/run-pass/allocator-jemalloc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// no-prefer-dynamic
12-
// ignore-msvc no jemalloc on msvc
12+
// ignore-windows no jemalloc on windows
1313
// ignore-bitrig no jemalloc on bitrig
1414
// ignore-openbsd no jemalloc on openbsd
1515

0 commit comments

Comments
 (0)