Skip to content

Commit 61ace6b

Browse files
committed
---
yaml --- r: 14155 b: refs/heads/try c: 889a783 h: refs/heads/master i: 14153: 53a733a 14151: 27ae7e2 v: v3
1 parent f3069c4 commit 61ace6b

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: d39ea4774614f1db3366184f1e6ce30b7614d9ff
5+
refs/heads/try: 889a78349426f28d1db508729e1091bad7cf46ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rt/rust_task.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ rust_task::rust_task(rust_task_thread *thread, rust_task_list *state,
219219
DLOG(thread, task, "sizeof(task) = %d (0x%x)", sizeof *this, sizeof *this);
220220

221221
stk = new_stk(thread, this, init_stack_sz);
222-
rust_sp = stk->end;
223222
if (supervisor) {
224223
supervisor->ref();
225224
}
@@ -336,7 +335,7 @@ rust_task::start(spawn_fn spawnee_fn,
336335

337336
I(thread, stk->data != NULL);
338337

339-
char *sp = (char *)rust_sp;
338+
char *sp = (char *)stk->end;
340339

341340
sp -= sizeof(spawn_args);
342341

branches/try/src/rt/rust_task.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
5353
bool notify_enabled;
5454
chan_handle notify_chan;
5555

56-
uintptr_t rust_sp; // Saved sp when not running.
57-
5856
context ctx;
5957
stk_seg *stk;
6058
uintptr_t runtime_sp; // Runtime sp while task running.

0 commit comments

Comments
 (0)