Skip to content

Commit 207d73b

Browse files
committed
---
yaml --- r: 29839 b: refs/heads/incoming c: a63f85c h: refs/heads/master i: 29837: 8340e2d 29835: 7c8c579 29831: 7e81c4a 29823: 8ff89c0 v: v3
1 parent 08c72fb commit 207d73b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 6d68658b9a9705d2e4c517d12705a2f64f20e378
9+
refs/heads/incoming: a63f85ce8c48a819c341f247ef451eb2160b30b1
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libcore/unsafe.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ unsafe fn shared_mutable_state<T: send>(+data: T) -> SharedMutableState<T> {
105105
}
106106
}
107107

108+
#[inline(always)]
108109
unsafe fn get_shared_mutable_state<T: send>(rc: &SharedMutableState<T>)
109110
-> &mut T {
110111
unsafe {
@@ -116,6 +117,7 @@ unsafe fn get_shared_mutable_state<T: send>(rc: &SharedMutableState<T>)
116117
return r;
117118
}
118119
}
120+
#[inline(always)]
119121
unsafe fn get_shared_immutable_state<T: send>(rc: &SharedMutableState<T>)
120122
-> &T {
121123
unsafe {
@@ -169,6 +171,7 @@ class LittleLock {
169171
}
170172

171173
impl LittleLock {
174+
#[inline(always)]
172175
unsafe fn lock<T>(f: fn() -> T) -> T {
173176
class Unlock {
174177
let l: rust_little_lock;
@@ -209,6 +212,7 @@ impl<T: send> Exclusive<T> {
209212
// Currently, scheduling operations (i.e., yielding, receiving on a pipe,
210213
// accessing the provided condition variable) are prohibited while inside
211214
// the exclusive. Supporting that is a work in progress.
215+
#[inline(always)]
212216
unsafe fn with<U>(f: fn(x: &mut T) -> U) -> U {
213217
let rec = unsafe { get_shared_mutable_state(&self.x) };
214218
do rec.lock.lock {

0 commit comments

Comments
 (0)