Skip to content

Commit 3364277

Browse files
committed
---
yaml --- r: 14046 b: refs/heads/try c: f94339c h: refs/heads/master v: v3
1 parent aff1dcb commit 3364277

24 files changed

+274
-275
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: f3343b35717edbfb88c7d1fae790e43d5d7cb732
5+
refs/heads/try: f94339cc1c98a1ae3ee3beb94c848009167a58d9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/mk/rt.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ RUNTIME_CS_$(1) := \
4242
rt/rust_run_program.cpp \
4343
rt/rust_crate_cache.cpp \
4444
rt/rust_env.cpp \
45-
rt/rust_scheduler.cpp \
45+
rt/rust_task_thread.cpp \
4646
rt/rust_task.cpp \
4747
rt/rust_task_list.cpp \
4848
rt/rust_port.cpp \
@@ -79,7 +79,7 @@ RUNTIME_HDR_$(1) := rt/globals.h \
7979
rt/rust_unwind.h \
8080
rt/rust_upcall.h \
8181
rt/rust_port.h \
82-
rt/rust_scheduler.h \
82+
rt/rust_task_thread.h \
8383
rt/rust_shape.h \
8484
rt/rust_task.h \
8585
rt/rust_task_list.h \

branches/try/src/rt/intrinsics/intrinsics.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
#include "../rust_internal.h"
77
#include "../rust_util.h"
8-
#include "../rust_scheduler.h"
98
#include <cstdlib>
109
#include <cstring>
1110

branches/try/src/rt/intrinsics/intrinsics.i386.ll.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ target triple = "@CFG_TARGET_TRIPLE@"
1010
%struct.rust_vec = type { i32, i32, [0 x i8] }
1111
%struct.rust_fn = type { i32*, %struct.rust_box* }
1212
%struct.rust_box = type opaque
13-
%struct.rust_task = type { %struct.rust_task_user, i32, [8 x i8], %class.context, %struct.stk_seg*, i32, %struct.rust_scheduler*, %class.rust_crate_cache*, %class.rust_kernel*, i8*, %class.rust_task_list*, %struct.rust_cond*, i8*, %struct.rust_task*, i32, i32, i32*, i32, i32, %class.memory_region, %class.boxed_region, i8, i8, i8, %class.lock_and_signal, %class.hash_map.4, %class.rust_obstack, i32, %"class.debug::task_debug_info", i32, [12 x i8] }
13+
%struct.rust_task = type { %struct.rust_task_user, i32, [8 x i8], %class.context, %struct.stk_seg*, i32, %struct.rust_task_thread*, %class.rust_crate_cache*, %class.rust_kernel*, i8*, %class.rust_task_list*, %struct.rust_cond*, i8*, %struct.rust_task*, i32, i32, i32*, %class.memory_region, %class.boxed_region, i8, i8, i8, %class.lock_and_signal, %class.hash_map.4, %class.rust_obstack, i32, %"class.debug::task_debug_info", i32, [4 x i8] }
1414
%struct.rust_task_user = type { i32, i32, %struct.chan_handle, i32 }
1515
%struct.chan_handle = type { i32, i32 }
1616
%class.context = type { %struct.registers_t, %class.context*, [12 x i8] }
1717
%struct.registers_t = type { i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i32, i32, [12 x i8] }
1818
%struct.stk_seg = type { %struct.stk_seg*, %struct.stk_seg*, i32, i32, i32, [0 x i8] }
19-
%struct.rust_scheduler = type { %class.rust_thread, i32, i32, %class.rust_log, i32, %class.rust_srv*, i8*, %class.rust_task_list, %class.rust_task_list, %class.rust_task_list, %class.rust_task_list, %class.rust_crate_cache, %struct.randctx, %class.rust_kernel*, i32, i32, %class.lock_and_signal, i32, %union.pthread_attr_t, %struct.rust_env*, [8 x i8], %class.context }
19+
%struct.rust_task_thread = type { %class.rust_thread, i32, %class.rust_log, i32, %class.rust_srv*, i8*, %class.rust_task_list, %class.rust_task_list, %class.rust_task_list, %class.rust_task_list, %class.rust_crate_cache, %struct.randctx, %class.rust_kernel*, i32, i32, %class.lock_and_signal, i32, %union.pthread_attr_t, %struct.rust_env*, [12 x i8], %class.context, i8, [15 x i8] }
2020
%class.rust_thread = type { i32 (...)**, i8, i32 }
21-
%class.rust_log = type { i32 (...)**, %class.rust_srv*, %struct.rust_scheduler*, i8 }
21+
%class.rust_log = type { i32 (...)**, %class.rust_srv*, %struct.rust_task_thread*, i8 }
2222
%class.rust_srv = type { i32 (...)**, %struct.rust_env*, %class.memory_region }
2323
%struct.rust_env = type { i32, i32, i32, i8*, i8, i8, i8* }
2424
%class.memory_region = type { i32 (...)**, %class.rust_srv*, %class.memory_region*, i32, %class.array_list, i8, i8, %class.lock_and_signal }
@@ -30,14 +30,14 @@ target triple = "@CFG_TARGET_TRIPLE@"
3030
%union.pthread_mutex_t = type { %"struct.<anonymous union>::__pthread_mutex_s" }
3131
%"struct.<anonymous union>::__pthread_mutex_s" = type { i32, i32, i32, i32, i32, %union.anon }
3232
%union.anon = type { i32 }
33-
%class.rust_task_list = type { %class.indexed_list, %struct.rust_scheduler*, i8* }
33+
%class.rust_task_list = type { %class.indexed_list, %struct.rust_task_thread*, i8* }
3434
%class.indexed_list = type { i32 (...)**, %class.array_list.1 }
3535
%class.array_list.1 = type { i32, %struct.rust_task**, i32 }
36-
%class.rust_crate_cache = type { %struct.type_desc*, %struct.rust_hashable_dict*, %struct.rust_scheduler*, i32 }
36+
%class.rust_crate_cache = type { %struct.type_desc*, %struct.rust_hashable_dict*, %struct.rust_task_thread*, i32 }
3737
%struct.rust_hashable_dict = type { %struct.UT_hash_handle, [0 x i8*] }
3838
%struct.randctx = type { i32, [256 x i32], [256 x i32], i32, i32, i32 }
3939
%class.rust_kernel = type { i32 (...)**, %class.memory_region, %class.rust_log, %class.rust_srv*, %class.lock_and_signal, %class.array_list.3, %struct.randctx, i32, %class.hash_map, i32, i32, i32, %struct.rust_env* }
40-
%class.array_list.3 = type { i32, %struct.rust_scheduler**, i32 }
40+
%class.array_list.3 = type { i32, %struct.rust_task_thread**, i32 }
4141
%class.hash_map = type { %"struct.hash_map<int, rust_task *>::map_entry"* }
4242
%"struct.hash_map<int, rust_task *>::map_entry" = type opaque
4343
%union.pthread_attr_t = type { i32, [32 x i8] }

branches/try/src/rt/intrinsics/intrinsics.x86_64.ll.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ target triple = "@CFG_TARGET_TRIPLE@"
1010
%struct.rust_vec = type { i64, i64, [0 x i8] }
1111
%struct.rust_fn = type { i64*, %struct.rust_box* }
1212
%struct.rust_box = type opaque
13-
%struct.rust_task = type { %struct.rust_task_user, i64, %class.context, %struct.stk_seg*, i64, %struct.rust_scheduler*, %class.rust_crate_cache*, %class.rust_kernel*, i8*, %class.rust_task_list*, %struct.rust_cond*, i8*, %struct.rust_task*, i32, i64, i64*, i32, i32, %class.memory_region, %class.boxed_region, i8, i8, i8, %class.lock_and_signal, %class.hash_map.4, %class.rust_obstack, i32, %"class.debug::task_debug_info", i64 }
13+
%struct.rust_task = type { %struct.rust_task_user, i64, %class.context, %struct.stk_seg*, i64, %struct.rust_task_thread*, %class.rust_crate_cache*, %class.rust_kernel*, i8*, %class.rust_task_list*, %struct.rust_cond*, i8*, %struct.rust_task*, i32, i64, i64*, %class.memory_region, %class.boxed_region, i8, i8, i8, %class.lock_and_signal, %class.hash_map.4, %class.rust_obstack, i32, %"class.debug::task_debug_info", i64, [8 x i8] }
1414
%struct.rust_task_user = type { i64, i64, %struct.chan_handle, i64 }
1515
%struct.chan_handle = type { i64, i64 }
1616
%class.context = type { %struct.registers_t, %class.context*, [8 x i8] }
1717
%struct.registers_t = type { [22 x i64] }
1818
%struct.stk_seg = type { %struct.stk_seg*, %struct.stk_seg*, i64, i32, [0 x i8] }
19-
%struct.rust_scheduler = type { %class.rust_thread, i64, i64, %class.rust_log, i32, %class.rust_srv*, i8*, %class.rust_task_list, %class.rust_task_list, %class.rust_task_list, %class.rust_task_list, %class.rust_crate_cache, %struct.randctx, %class.rust_kernel*, i32, i32, %class.lock_and_signal, i64, %union.pthread_attr_t, %struct.rust_env*, %class.context }
19+
%struct.rust_task_thread = type { %class.rust_thread, i64, %class.rust_log, i32, %class.rust_srv*, i8*, %class.rust_task_list, %class.rust_task_list, %class.rust_task_list, %class.rust_task_list, %class.rust_crate_cache, %struct.randctx, %class.rust_kernel*, i32, i32, %class.lock_and_signal, i64, %union.pthread_attr_t, %struct.rust_env*, [8 x i8], %class.context, i8, [15 x i8] }
2020
%class.rust_thread = type { i32 (...)**, i8, i64 }
21-
%class.rust_log = type { i32 (...)**, %class.rust_srv*, %struct.rust_scheduler*, i8 }
21+
%class.rust_log = type { i32 (...)**, %class.rust_srv*, %struct.rust_task_thread*, i8 }
2222
%class.rust_srv = type { i32 (...)**, %struct.rust_env*, %class.memory_region }
2323
%struct.rust_env = type { i64, i64, i64, i8*, i8, i8, i8* }
2424
%class.memory_region = type { i32 (...)**, %class.rust_srv*, %class.memory_region*, i32, %class.array_list, i8, i8, %class.lock_and_signal }
@@ -30,14 +30,14 @@ target triple = "@CFG_TARGET_TRIPLE@"
3030
%union.pthread_mutex_t = type { %"struct.<anonymous union>::__pthread_mutex_s" }
3131
%"struct.<anonymous union>::__pthread_mutex_s" = type { i32, i32, i32, i32, i32, i32, %struct.__pthread_internal_list }
3232
%struct.__pthread_internal_list = type { %struct.__pthread_internal_list*, %struct.__pthread_internal_list* }
33-
%class.rust_task_list = type { %class.indexed_list, %struct.rust_scheduler*, i8* }
33+
%class.rust_task_list = type { %class.indexed_list, %struct.rust_task_thread*, i8* }
3434
%class.indexed_list = type { i32 (...)**, %class.array_list.1 }
3535
%class.array_list.1 = type { i64, %struct.rust_task**, i64 }
36-
%class.rust_crate_cache = type { %struct.type_desc*, %struct.rust_hashable_dict*, %struct.rust_scheduler*, i64 }
36+
%class.rust_crate_cache = type { %struct.type_desc*, %struct.rust_hashable_dict*, %struct.rust_task_thread*, i64 }
3737
%struct.rust_hashable_dict = type { %struct.UT_hash_handle, [0 x i8*] }
3838
%struct.randctx = type { i64, [256 x i64], [256 x i64], i64, i64, i64 }
3939
%class.rust_kernel = type { i32 (...)**, %class.memory_region, %class.rust_log, %class.rust_srv*, %class.lock_and_signal, %class.array_list.3, %struct.randctx, i64, %class.hash_map, i32, i64, i32, %struct.rust_env* }
40-
%class.array_list.3 = type { i64, %struct.rust_scheduler**, i64 }
40+
%class.array_list.3 = type { i64, %struct.rust_task_thread**, i64 }
4141
%class.hash_map = type { %"struct.hash_map<long, rust_task *>::map_entry"* }
4242
%"struct.hash_map<long, rust_task *>::map_entry" = type opaque
4343
%union.pthread_attr_t = type { i64, [48 x i8] }

branches/try/src/rt/rust.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
9090
rust_task_id root_id = kernel->create_task(NULL, "main", MAIN_STACK_SIZE);
9191
rust_task *root_task = kernel->get_task_by_id(root_id);
9292
I(kernel, root_task != NULL);
93-
rust_scheduler *sched = root_task->sched;
93+
rust_task_thread *thread = root_task->thread;
9494
command_line_args *args
9595
= new (kernel, "main command line args")
9696
command_line_args(root_task, argc, argv);
9797

98-
DLOG(sched, dom, "startup: %d args in 0x%" PRIxPTR,
98+
DLOG(thread, dom, "startup: %d args in 0x%" PRIxPTR,
9999
args->argc, (uintptr_t)args->args);
100100
for (int i = 0; i < args->argc; i++) {
101-
DLOG(sched, dom, "startup: arg[%d] = '%s'", i, args->argv[i]);
101+
DLOG(thread, dom, "startup: arg[%d] = '%s'", i, args->argv[i]);
102102
}
103103

104104
root_task->start((spawn_fn)main_fn, NULL, args->args);

0 commit comments

Comments
 (0)