Skip to content

Commit 61b2dc4

Browse files
committed
---
yaml --- r: 66507 b: refs/heads/master c: 0d7799d h: refs/heads/master i: 66505: 2d24912 66503: f5143d1 v: v3
1 parent 4bf6036 commit 61b2dc4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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: b731d96b4f2a8d5733e79a863c40632425456520
2+
refs/heads/master: 0d7799d3048eea4039d59c0cca98449e1c52a561
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/libstd/rt/global_heap.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ extern {
1818
fn abort();
1919
}
2020

21+
#[inline]
2122
fn get_box_size(body_size: uint, body_align: uint) -> uint {
2223
let header_size = size_of::<BoxHeaderRepr>();
2324
// FIXME (#2699): This alignment calculation is suspicious. Is it right?
@@ -27,6 +28,7 @@ fn get_box_size(body_size: uint, body_align: uint) -> uint {
2728

2829
// Rounds |size| to the nearest |alignment|. Invariant: |alignment| is a power
2930
// of two.
31+
#[inline]
3032
fn align_to(size: uint, align: uint) -> uint {
3133
assert!(align != 0);
3234
(size + align - 1) & !(align - 1)

0 commit comments

Comments
 (0)