File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
branches/auto/src/libcore Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: c16919d3a8e83e4c72668f6ad89d48f6ba8341f6
17
+ refs/heads/auto: 397a47852849ac2e286508f2315e695f5d8168cf
18
18
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
Original file line number Diff line number Diff line change @@ -120,9 +120,9 @@ impl<T> Drop for ArcDestruct<T>{
120
120
fn finalize ( & self ) {
121
121
unsafe {
122
122
do task:: unkillable {
123
- let data : ~ArcData <T > = cast:: reinterpret_cast ( & self . data ) ;
123
+ let mut data : ~ArcData <T > = cast:: reinterpret_cast ( & self . data ) ;
124
124
let new_count =
125
- intrinsics:: atomic_xsub ( cast :: transmute_mut ( & data. count ) , 1 ) - 1 ;
125
+ intrinsics:: atomic_xsub ( & mut data. count , 1 ) - 1 ;
126
126
assert ! ( new_count >= 0 ) ;
127
127
if new_count == 0 {
128
128
// drop glue takes over.
@@ -185,8 +185,8 @@ pub unsafe fn get_shared_immutable_state<'a,T:Owned>(
185
185
pub unsafe fn clone_shared_mutable_state < T : Owned > ( rc : & SharedMutableState < T > )
186
186
-> SharedMutableState < T > {
187
187
unsafe {
188
- let ptr: ~ArcData < T > = cast:: reinterpret_cast ( & ( * rc) . data ) ;
189
- let new_count = intrinsics:: atomic_xadd ( cast :: transmute_mut ( & ptr. count ) , 1 ) + 1 ;
188
+ let mut ptr: ~ArcData < T > = cast:: reinterpret_cast ( & ( * rc) . data ) ;
189
+ let new_count = intrinsics:: atomic_xadd ( & mut ptr. count , 1 ) + 1 ;
190
190
assert ! ( new_count >= 2 ) ;
191
191
cast:: forget ( ptr) ;
192
192
}
You can’t perform that action at this time.
0 commit comments