Skip to content

Commit 81ecd27

Browse files
committed
Comments only: TODOs to FIXME in the runtime
1 parent fe77e96 commit 81ecd27

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
lines changed

src/libcore/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ type task_opts = {
181181
// sidestep that whole issue by making builders uncopyable and making
182182
// the run function move them in.
183183
enum builder {
184-
builder_({
184+
builder_({
185185
mut opts: task_opts,
186186
mut gen_body: fn@(+fn~()) -> fn~(),
187187
can_not_copy: option<comm::port<()>>

src/rt/rust_abi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define HAVE_DLFCN_H
1212
#include <dlfcn.h>
1313
#elif defined(_WIN32)
14-
// TODO
14+
// FIXME #2889
1515
#endif
1616

1717
#define END_OF_STACK_RA (void (*)())0xdeadbeef

src/rt/rust_builtin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,8 @@ task_clear_event_reject(rust_task *task) {
938938
// task.
939939
extern "C" void *
940940
task_wait_event(rust_task *task, bool *killed) {
941-
// TODO: we should assert that the passed in task is the currently running
942-
// task. We wouldn't want to wait some other task.
941+
// FIXME #2890: we should assert that the passed in task is the currently
942+
// running task. We wouldn't want to wait some other task.
943943

944944
return task->wait_event(killed);
945945
}

src/rt/rust_sched_loop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ rust_sched_loop::rust_sched_loop(rust_scheduler *sched,int id) :
2525
log_lvl(log_debug),
2626
min_stack_size(kernel->env->min_stack_size),
2727
local_region(kernel->env, false),
28-
// TODO: calculate a per scheduler name.
28+
// FIXME #2891: calculate a per-scheduler name.
2929
name("main")
3030
{
3131
LOGPTR(this, "new dom", (uintptr_t)this);

src/rt/rust_shape.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ size_of::walk_struct1(const uint8_t *end_sp) {
160160
#if 0
161161

162162
class copy : public data<copy,uint8_t *> {
163-
// TODO
163+
// FIXME #2892
164164
};
165165

166166
#endif

src/rt/rust_shape.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ class print : public ctxt<print> {
570570
// Size-of (which also computes alignment). Be warned: this is an expensive
571571
// operation.
572572
//
573-
// TODO: Maybe dynamic_size_of() should call into this somehow?
573+
// FIXME #2894: Maybe dynamic_size_of() should call into this somehow?
574574
//
575575

576576
class size_of : public ctxt<size_of> {
@@ -612,7 +612,7 @@ class size_of : public ctxt<size_of> {
612612
}
613613

614614
void walk_res1(const rust_fn *dtor, const uint8_t *end_sp) {
615-
abort(); // TODO
615+
abort(); // FIXME #2895
616616
}
617617

618618
void walk_fixedvec1(uint16_t n_elts, bool is_pod) {

src/rt/sync/lock_and_signal.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ lock_and_signal::lock_and_signal()
2929
const DWORD SPIN_COUNT = 4000;
3030
CHECKED(!InitializeCriticalSectionAndSpinCount(&_cs, SPIN_COUNT));
3131

32-
// TODO? Consider checking GetProcAddress("InitializeCriticalSectionEx")
32+
// FIXME #2893 Consider checking
33+
// GetProcAddress("InitializeCriticalSectionEx")
3334
// so Windows >= Vista we can use CRITICAL_SECTION_NO_DEBUG_INFO to avoid
3435
// allocating CRITICAL_SECTION debug info that is never released. See:
3536
// http://stackoverflow.com/questions/804848/

0 commit comments

Comments
 (0)