Skip to content

Commit 9b175ce

Browse files
committed
---
yaml --- r: 12249 b: refs/heads/master c: cf0c4cd h: refs/heads/master i: 12247: 4913937 v: v3
1 parent 792be16 commit 9b175ce

32 files changed

+285
-565
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: a17097a57b7563ee94e090b0d428332bb28ef424
2+
refs/heads/master: cf0c4cd7d2918205c13df38c4a62f93e1c72c1ac
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/mk/rt.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ RUNTIME_CS_$(1) := \
5050
rt/rust_builtin.cpp \
5151
rt/rust_run_program.cpp \
5252
rt/rust_env.cpp \
53-
rt/rust_sched_loop.cpp \
54-
rt/rust_sched_launcher.cpp \
55-
rt/rust_sched_driver.cpp \
53+
rt/rust_task_thread.cpp \
5654
rt/rust_scheduler.cpp \
57-
rt/rust_sched_reaper.cpp \
5855
rt/rust_task.cpp \
5956
rt/rust_stack.cpp \
6057
rt/rust_port.cpp \

trunk/mk/tests.mk

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,34 @@ check-full: tidy all check-stage1 check-stage2 check-stage3 \
7474
ifdef CFG_NOTIDY
7575
tidy:
7676
else
77+
78+
ALL_CS := $(wildcard $(S)src/rt/*.cpp \
79+
$(S)src/rt/*/*.cpp \
80+
$(S)src/rt/*/*/*.cpp \
81+
$(S)srcrustllvm/*.cpp)
82+
ALL_CS := $(filter-out $(S)src/rt/bigint/bigint_ext.cpp \
83+
$(S)src/rt/bigint/bigint_int.cpp \
84+
,$(ALL_CS))
85+
ALL_HS := $(wildcard $(S)src/rt/*.h \
86+
$(S)src/rt/*/*.h \
87+
$(S)src/rt/*/*/*.h \
88+
$(S)srcrustllvm/*.h)
89+
ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \
90+
$(S)src/rt/vg/memcheck.h \
91+
$(S)src/rt/uthash/uthash.h \
92+
$(S)src/rt/uthash/utlist.h \
93+
$(S)src/rt/msvc/typeof.h \
94+
$(S)src/rt/msvc/stdint.h \
95+
$(S)src/rt/msvc/inttypes.h \
96+
$(S)src/rt/bigint/bigint.h \
97+
,$(ALL_HS))
98+
7799
tidy:
78100
@$(call E, check: formatting)
79101
$(Q)echo \
80-
$(addprefix $(S)src/, $(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \
81-
$(RUSTLLVM_HDR) \
82-
$(RUNTIME_CS) $(RUNTIME_HDR) $(RUNTIME_S)) \
83102
$(wildcard $(S)src/etc/*.py) \
103+
$(ALL_CS) \
104+
$(ALL_HS) \
84105
$(COMPILER_CRATE) \
85106
$(COMPILER_INPUTS) \
86107
$(CORELIB_CRATE) \

trunk/src/etc/x86.supp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -389,34 +389,6 @@
389389
fun:uv_loop_delete
390390
}
391391

392-
{
393-
lock_and_signal-probably-threadsafe-access-outside-of-lock
394-
Helgrind:Race
395-
fun:_ZN15lock_and_signal27lock_held_by_current_threadEv
396-
...
397-
}
398-
399-
{
400-
lock_and_signal-probably-threadsafe-access-outside-of-lock2
401-
Helgrind:Race
402-
fun:_ZN15lock_and_signal6unlockEv
403-
...
404-
}
405-
406-
{
407-
lock_and_signal-probably-threadsafe-access-outside-of-lock3
408-
Helgrind:Race
409-
fun:_ZN15lock_and_signal4lockEv
410-
...
411-
}
412-
413-
{
414-
lock_and_signal-probably-threadsafe-access-outside-of-lock4
415-
Helgrind:Race
416-
fun:_ZN15lock_and_signal4waitEv
417-
...
418-
}
419-
420392
{
421393
uv-async-send-does-racy-things
422394
Helgrind:Race

trunk/src/rt/rust.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,21 @@ rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
8080
rust_sched_id sched_id = kernel->create_scheduler(env->num_sched_threads);
8181
rust_scheduler *sched = kernel->get_scheduler_by_id(sched_id);
8282
rust_task *root_task = sched->create_task(NULL, "main");
83+
rust_task_thread *thread = root_task->thread;
8384
command_line_args *args
8485
= new (kernel, "main command line args")
8586
command_line_args(root_task, argc, argv);
8687

87-
LOG(root_task, dom, "startup: %d args in 0x%" PRIxPTR,
88+
DLOG(thread, dom, "startup: %d args in 0x%" PRIxPTR,
8889
args->argc, (uintptr_t)args->args);
8990
for (int i = 0; i < args->argc; i++) {
90-
LOG(root_task, dom, "startup: arg[%d] = '%s'", i, args->argv[i]);
91+
DLOG(thread, dom, "startup: arg[%d] = '%s'", i, args->argv[i]);
9192
}
9293

9394
root_task->start((spawn_fn)main_fn, NULL, args->args);
9495
root_task = NULL;
9596

96-
int ret = kernel->wait_for_exit();
97+
int ret = kernel->wait_for_schedulers();
9798
delete args;
9899
delete kernel;
99100
delete srv;

0 commit comments

Comments
 (0)