Skip to content

Commit 01df444

Browse files
committed
---
yaml --- r: 155562 b: refs/heads/try2 c: 1e0c7b6 h: refs/heads/master v: v3
1 parent 8e1b0b9 commit 01df444

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: c76151529a79bf85f54d95cf41876d83a0fdad1d
8+
refs/heads/try2: 1e0c7b682f1675e39085f1f0f928a37364bab9c7
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/liballoc/heap.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ unsafe fn exchange_free(ptr: *mut u8, size: uint, align: uint) {
111111
// The minimum alignment guaranteed by the architecture. This value is used to
112112
// add fast paths for low alignment values. In practice, the alignment is a
113113
// constant at the call site and the branch will be optimized out.
114-
#[cfg(target_arch = "arm")]
115-
#[cfg(target_arch = "mips")]
116-
#[cfg(target_arch = "mipsel")]
114+
#[cfg(any(target_arch = "arm",
115+
target_arch = "mips",
116+
target_arch = "mipsel"))]
117117
static MIN_ALIGN: uint = 8;
118-
#[cfg(target_arch = "x86")]
119-
#[cfg(target_arch = "x86_64")]
118+
#[cfg(any(target_arch = "x86",
119+
target_arch = "x86_64"))]
120120
static MIN_ALIGN: uint = 16;
121121

122122
#[cfg(jemalloc)]
@@ -146,7 +146,7 @@ mod imp {
146146
}
147147

148148
// -lpthread needs to occur after -ljemalloc, the earlier argument isn't enough
149-
#[cfg(not(windows), not(target_os = "android"))]
149+
#[cfg(all(not(windows), not(target_os = "android")))]
150150
#[link(name = "pthread")]
151151
extern {}
152152

@@ -206,7 +206,7 @@ mod imp {
206206
}
207207
}
208208

209-
#[cfg(not(jemalloc), unix)]
209+
#[cfg(all(not(jemalloc), unix))]
210210
mod imp {
211211
use core::cmp;
212212
use core::ptr;
@@ -268,7 +268,7 @@ mod imp {
268268
pub fn stats_print() {}
269269
}
270270

271-
#[cfg(not(jemalloc), windows)]
271+
#[cfg(all(not(jemalloc), windows))]
272272
mod imp {
273273
use libc::{c_void, size_t};
274274
use libc;

0 commit comments

Comments
 (0)