Skip to content

Commit 89a5041

Browse files
committed
---
yaml --- r: 97141 b: refs/heads/dist-snap c: 091bfa9 h: refs/heads/master i: 97139: 721e79a v: v3
1 parent 144e4f6 commit 89a5041

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 6659ae7d97b725e32a347a954f4e77118cc16a8a
9+
refs/heads/dist-snap: 091bfa9cc38e3baca273a88ee12344649705781e
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/middle/trans/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ pub fn get_tydesc(ccx: &CrateContext, t: ty::t) -> @tydesc_info {
454454
}
455455
}
456456

457-
ccx.stats.n_static_tydescs += 1u;
457+
ccx.stats.n_static_tydescs.set(ccx.stats.n_static_tydescs.get() + 1u);
458458
let inf = glue::declare_tydesc(ccx, t);
459459

460460
let mut tydescs = ccx.tydescs.borrow_mut();
@@ -3245,7 +3245,7 @@ pub fn trans_crate(sess: session::Session,
32453245
let metadata = write_metadata(ccx, &crate);
32463246
if ccx.sess.trans_stats() {
32473247
println("--- trans stats ---");
3248-
println!("n_static_tydescs: {}", ccx.stats.n_static_tydescs);
3248+
println!("n_static_tydescs: {}", ccx.stats.n_static_tydescs.get());
32493249
println!("n_glues_created: {}", ccx.stats.n_glues_created);
32503250
println!("n_null_glues: {}", ccx.stats.n_null_glues);
32513251
println!("n_real_glues: {}", ccx.stats.n_real_glues);

branches/dist-snap/src/librustc/middle/trans/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub struct tydesc_info {
126126
*/
127127

128128
pub struct Stats {
129-
n_static_tydescs: uint,
129+
n_static_tydescs: Cell<uint>,
130130
n_glues_created: uint,
131131
n_null_glues: uint,
132132
n_real_glues: uint,

branches/dist-snap/src/librustc/middle/trans/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ impl CrateContext {
211211
tcx: tcx,
212212
maps: maps,
213213
stats: @mut Stats {
214-
n_static_tydescs: 0u,
214+
n_static_tydescs: Cell::new(0u),
215215
n_glues_created: 0u,
216216
n_null_glues: 0u,
217217
n_real_glues: 0u,

0 commit comments

Comments
 (0)