Skip to content

Commit 9f61bfa

Browse files
committed
---
yaml --- r: 173015 b: refs/heads/master c: 3614e1d h: refs/heads/master i: 173013: 4682cc3 173011: fdba27b 173007: 64c35ec v: v3
1 parent 2022f44 commit 9f61bfa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+981
-594
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c1d48a85082cfe3683ad9eda5223d3259d4fa718
2+
refs/heads/master: 3614e1de6cf7abc7754c23f93476bef0e2625e99
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
55
refs/heads/try: 957472483d3a2f43c0e4f7c2056280a1022af93c

trunk/src/liballoc/arc.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ unsafe impl<T: Sync + Send> Send for Weak<T> { }
137137
unsafe impl<T: Sync + Send> Sync for Weak<T> { }
138138

139139
struct ArcInner<T> {
140-
strong: atomic::AtomicUint,
141-
weak: atomic::AtomicUint,
140+
strong: atomic::AtomicUsize,
141+
weak: atomic::AtomicUsize,
142142
data: T,
143143
}
144144

@@ -161,8 +161,8 @@ impl<T> Arc<T> {
161161
// Start the weak pointer count as 1 which is the weak pointer that's
162162
// held by all the strong pointers (kinda), see std/rc.rs for more info
163163
let x = box ArcInner {
164-
strong: atomic::AtomicUint::new(1),
165-
weak: atomic::AtomicUint::new(1),
164+
strong: atomic::AtomicUsize::new(1),
165+
weak: atomic::AtomicUsize::new(1),
166166
data: data,
167167
};
168168
Arc { _ptr: unsafe { NonZero::new(mem::transmute(x)) } }
@@ -619,7 +619,7 @@ mod tests {
619619
use super::{Arc, Weak, weak_count, strong_count};
620620
use std::sync::Mutex;
621621

622-
struct Canary(*mut atomic::AtomicUint);
622+
struct Canary(*mut atomic::AtomicUsize);
623623

624624
impl Drop for Canary
625625
{
@@ -743,16 +743,16 @@ mod tests {
743743

744744
#[test]
745745
fn drop_arc() {
746-
let mut canary = atomic::AtomicUint::new(0);
747-
let x = Arc::new(Canary(&mut canary as *mut atomic::AtomicUint));
746+
let mut canary = atomic::AtomicUsize::new(0);
747+
let x = Arc::new(Canary(&mut canary as *mut atomic::AtomicUsize));
748748
drop(x);
749749
assert!(canary.load(Acquire) == 1);
750750
}
751751

752752
#[test]
753753
fn drop_arc_weak() {
754-
let mut canary = atomic::AtomicUint::new(0);
755-
let arc = Arc::new(Canary(&mut canary as *mut atomic::AtomicUint));
754+
let mut canary = atomic::AtomicUsize::new(0);
755+
let arc = Arc::new(Canary(&mut canary as *mut atomic::AtomicUsize));
756756
let arc_weak = arc.downgrade();
757757
assert!(canary.load(Acquire) == 0);
758758
drop(arc);

trunk/src/libcollections/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ mod tests {
21992199

22002200
#[test]
22012201
fn test_map_in_place_zero_drop_count() {
2202-
use std::sync::atomic::{AtomicUint, Ordering, ATOMIC_UINT_INIT};
2202+
use std::sync::atomic::{AtomicUsize, Ordering, ATOMIC_USIZE_INIT};
22032203

22042204
#[derive(Clone, PartialEq, Show)]
22052205
struct Nothing;
@@ -2213,7 +2213,7 @@ mod tests {
22132213
}
22142214
}
22152215
const NUM_ELEMENTS: uint = 2;
2216-
static DROP_COUNTER: AtomicUint = ATOMIC_UINT_INIT;
2216+
static DROP_COUNTER: AtomicUsize = ATOMIC_USIZE_INIT;
22172217

22182218
let v = repeat(Nothing).take(NUM_ELEMENTS).collect::<Vec<_>>();
22192219

0 commit comments

Comments
 (0)