Skip to content

Commit 9aa6705

Browse files
committed
rt: Remove some stack-wasting macros from rust_task::yield
1 parent 71bcba6 commit 9aa6705

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/lib/task.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ time_in_us - maximum number of microseconds to yield control for
146146
fn sleep(time_in_us: uint) {
147147
let task = rustrt::rust_get_task();
148148
let killed = false;
149+
log #fmt("yielding for %u us", time_in_us);
149150
rusti::task_sleep(task, time_in_us, killed);
150151
if killed {
151152
fail "killed";

src/rt/rust_task.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,7 @@ rust_task::grow(size_t n_frame_bytes)
268268
// Only run this on the rust stack
269269
void
270270
rust_task::yield(size_t time_in_us, bool *killed) {
271-
LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us",
272-
name, this, time_in_us);
273-
274271
if (this->killed) {
275-
A(sched, !blocked(), "Shouldn't be blocked before failing");
276272
*killed = true;
277273
}
278274

0 commit comments

Comments
 (0)