Skip to content

Commit 0bceca2

Browse files
committed
---
yaml --- r: 11968 b: refs/heads/master c: 5d4bf75 h: refs/heads/master v: v3
1 parent aec07de commit 0bceca2

File tree

7 files changed

+3
-50
lines changed

7 files changed

+3
-50
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: 47c18957242e34ddb8b12f27c8efd396171fef6d
2+
refs/heads/master: 5d4bf75f56a10c4d15acb3ecb3d33aeea5511806
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/mk/rt.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ RUNTIME_CS_$(1) := \
4545
rt/rust_scheduler.cpp \
4646
rt/rust_task.cpp \
4747
rt/rust_stack.cpp \
48-
rt/rust_task_list.cpp \
4948
rt/rust_port.cpp \
5049
rt/rust_upcall.cpp \
5150
rt/rust_uv.cpp \
@@ -83,7 +82,6 @@ RUNTIME_HDR_$(1) := rt/globals.h \
8382
rt/rust_shape.h \
8483
rt/rust_task.h \
8584
rt/rust_stack.h \
86-
rt/rust_task_list.h \
8785
rt/rust_log.h \
8886
rt/rust_port_selector.h \
8987
rt/circular_buffer.h \

trunk/src/rt/rust_internal.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ template <typename T> struct region_owned {
145145
}
146146
};
147147

148-
#include "rust_task_list.h"
149-
150148
// A cond(ition) is something we can block on. This can be a channel
151149
// (writing), a port (reading) or a task (waiting).
152150

trunk/src/rt/rust_task_list.cpp

Lines changed: 0 additions & 15 deletions
This file was deleted.

trunk/src/rt/rust_task_list.h

Lines changed: 0 additions & 16 deletions
This file was deleted.

trunk/src/rt/rust_task_thread.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ rust_task_thread::rust_task_thread(rust_scheduler *sched,
2727
id(id),
2828
should_exit(false),
2929
cached_c_stack(NULL),
30-
newborn_tasks(this),
31-
running_tasks(this),
32-
blocked_tasks(this),
33-
dead_tasks(this),
3430
kernel(sched->kernel),
3531
sched(sched),
3632
srv(srv),
@@ -47,15 +43,6 @@ rust_task_thread::rust_task_thread(rust_scheduler *sched,
4743
init_tls();
4844
}
4945

50-
rust_task_thread::~rust_task_thread() {
51-
DLOG(this, dom, "~rust_task_thread %s @0x%" PRIxPTR, name, (uintptr_t)this);
52-
53-
newborn_tasks.delete_all();
54-
running_tasks.delete_all();
55-
blocked_tasks.delete_all();
56-
dead_tasks.delete_all();
57-
}
58-
5946
void
6047
rust_task_thread::activate(rust_task *task) {
6148
task->ctx.next = &c_context;

trunk/src/rt/rust_task_thread.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ enum rust_task_state {
1919
task_state_dead
2020
};
2121

22+
typedef indexed_list<rust_task> rust_task_list;
23+
2224
struct rust_task_thread : public kernel_owned<rust_task_thread>,
2325
rust_thread
2426
{
@@ -80,7 +82,6 @@ struct rust_task_thread : public kernel_owned<rust_task_thread>,
8082
// Only a pointer to 'name' is kept, so it must live as long as this
8183
// domain.
8284
rust_task_thread(rust_scheduler *sched, rust_srv *srv, int id);
83-
~rust_task_thread();
8485
void activate(rust_task *task);
8586
void log(rust_task *task, uint32_t level, char const *fmt, ...);
8687
rust_log & get_log();

0 commit comments

Comments
 (0)