Skip to content

Commit bdf703b

Browse files
committed
---
yaml --- r: 13992 b: refs/heads/try c: ed3a5ad h: refs/heads/master v: v3
1 parent ee39245 commit bdf703b

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
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: 57cad613538177e06aa1b509f820f6f93704ad8c
5+
refs/heads/try: ed3a5ad5ad01a7213cecb6361b83d710f8eb4249
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rt/rust_scheduler.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,7 @@ rust_scheduler::start_main_loop() {
282282
DLOG(this, task,
283283
"Running task %p on worker %d",
284284
scheduled_task, id);
285-
scheduled_task->running_on = id;
286285
activate(scheduled_task);
287-
scheduled_task->running_on = -1;
288286

289287
DLOG(this, task,
290288
"returned from task %s @0x%" PRIxPTR

branches/try/src/rt/rust_task.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ rust_task::rust_task(rust_scheduler *sched, rust_task_list *state,
244244
list_index(-1),
245245
next_port_id(0),
246246
rendezvous_ptr(0),
247-
running_on(-1),
248247
local_region(&sched->srv->local_region),
249248
boxed(&local_region),
250249
unwinding(false),
@@ -626,8 +625,7 @@ rust_task::backtrace() {
626625

627626
bool rust_task::can_schedule(int id)
628627
{
629-
return
630-
running_on == -1;
628+
return true;
631629
}
632630

633631
void *

branches/try/src/rt/rust_task.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
9898
// that location before waking us up.
9999
uintptr_t* rendezvous_ptr;
100100

101-
// This flag indicates that a worker is either currently running the task
102-
// or is about to run this task.
103-
int running_on;
104-
105101
memory_region local_region;
106102
boxed_region boxed;
107103

0 commit comments

Comments
 (0)