Skip to content

Commit 57c2085

Browse files
committed
---
yaml --- r: 6899 b: refs/heads/master c: 085c813 h: refs/heads/master i: 6897: 9b0ea6b 6895: 490000c v: v3
1 parent 7c6b900 commit 57c2085

File tree

5 files changed

+5
-18
lines changed

5 files changed

+5
-18
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: bbc534bcccfc1904104a1fa275a6a873a7675cd1
2+
refs/heads/master: 085c813fe3f03c67aa8e8cb7fa005886d9447c50

trunk/src/cargo/sources.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"url": "https://raw.github.com/graydon/cargo-central/master/packages.json"
44
},
55
"elly": {
6-
"url": "https://raw.github.com/elly/rust-packages/master/packages.json"
6+
"url": "https://raw.github.com/elly/rust-packages/master/packages.json",
77
"sig": "https://raw.github.com/elly/rust-packages/master/packages.json.sig",
88
"key": "https://raw.github.com/elly/rust-packages/master/signing-key.gpg",
99
"keyfp": "4107 21C0 FF32 858F 61FF 33F6 E595 8E36 FDC8 EA00"

trunk/src/rt/rust_kernel.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,11 @@ rust_kernel::fail() {
150150

151151
rust_task_id
152152
rust_kernel::create_task(rust_task *spawner, const char *name) {
153+
scoped_lock with(_kernel_lock);
153154
rust_scheduler *thread = threads[isaac_rand(&rctx) % num_threads];
154155
rust_task *t = thread->create_task(spawner, name);
155-
{
156-
scoped_lock with(_kernel_lock);
157-
t->user.id = max_id++;
158-
task_table.put(t->user.id, t);
159-
}
156+
t->user.id = max_id++;
157+
task_table.put(t->user.id, t);
160158
return t->user.id;
161159
}
162160

trunk/src/rt/rust_task.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,6 @@ void rust_task::start()
397397
sched->lock.signal();
398398
}
399399

400-
void
401-
rust_task::grow(size_t n_frame_bytes)
402-
{
403-
// FIXME (issue #151): Just fail rather than almost certainly crashing
404-
// mysteriously later. The commented-out logic below won't work at all in
405-
// the presence of non-word-aligned pointers.
406-
abort();
407-
408-
}
409-
410400
// Only run this on the rust stack
411401
void
412402
rust_task::yield(size_t time_in_us, bool *killed) {

trunk/src/rt/rust_task.h

-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
138138
void start(uintptr_t spawnee_fn,
139139
uintptr_t args);
140140
void start();
141-
void grow(size_t n_frame_bytes);
142141
bool running();
143142
bool blocked();
144143
bool blocked_on(rust_cond *cond);

0 commit comments

Comments
 (0)