Skip to content

Commit dedfef4

Browse files
committed
Revert "wip"
This reverts commit aeadc62.
1 parent 854daae commit dedfef4

File tree

5 files changed

+1
-88
lines changed

5 files changed

+1
-88
lines changed

src/libcore/core.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import option::{some, none};
77
import option = option::t;
88
export option, some, none;
9-
export repeat;
109

1110
// Export the log levels as global constants. Higher levels mean
1211
// more-verbosity. Error is the bottom level, default logging level is
@@ -16,16 +15,3 @@ const error : int = 0;
1615
const warn : int = 1;
1716
const info : int = 2;
1817
const debug : int = 3;
19-
20-
/*
21-
Function: repeat
22-
23-
Execute a function for a set number of times
24-
*/
25-
fn repeat(times: uint, f: block()) {
26-
let i = 0u;
27-
while i < times {
28-
f();
29-
i += 1u;
30-
}
31-
}

src/rt/circular_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class
99
circular_buffer : public kernel_owned<circular_buffer> {
10-
static const size_t INITIAL_CIRCULAR_BUFFER_SIZE_IN_UNITS = 1;
10+
static const size_t INITIAL_CIRCULAR_BUFFER_SIZE_IN_UNITS = 8;
1111
static const size_t MAX_CIRCULAR_BUFFER_SIZE = 1 << 24;
1212

1313
public:

src/rt/rust_task.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,6 @@ rust_task::yield(size_t time_in_us, bool *killed) {
404404
*killed = true;
405405
}
406406

407-
// We're not going to need any extra stack for a while
408-
clear_stack_cache();
409-
410407
yield_timer.reset_us(time_in_us);
411408

412409
// Return to the scheduler.
@@ -749,15 +746,6 @@ rust_task::del_stack() {
749746
record_stack_limit();
750747
}
751748

752-
void
753-
rust_task::clear_stack_cache() {
754-
A(sched, stk != NULL, "Expected to have a stack");
755-
if (stk->prev != NULL) {
756-
free_stk(this, stk->prev);
757-
stk->prev = NULL;
758-
}
759-
}
760-
761749
void
762750
rust_task::record_stack_limit() {
763751
// The function prolog compares the amount of stack needed to the end of

src/rt/rust_task.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
203203
void reset_stack_limit();
204204
bool on_rust_stack();
205205
void check_stack_canary();
206-
void clear_stack_cache();
207206
};
208207

209208
//

src/test/bench/task-perf-one-million.rs

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

0 commit comments

Comments
 (0)