Skip to content

Commit c814df0

Browse files
committed
Comments only: annotate FIXMEs
1 parent be8b091 commit c814df0

File tree

8 files changed

+15
-14
lines changed

8 files changed

+15
-14
lines changed

src/rt/memory_region.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* memory management and isolation between tasks, and domains.
44
*
55
* FIXME: Implement a custom lock-free malloc / free instead of relying solely
6-
* on the standard malloc / free.
6+
* on the standard malloc / free. (#2686)
77
*/
88

99
#ifndef MEMORY_REGION_H

src/rt/rust.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ command_line_args : public kernel_owned<command_line_args>
6767
};
6868

6969
// A global that indicates whether Rust typestate claim statements should be
70-
// executed Generated code will read this variable directly (I think).
71-
// FIXME: This belongs somewhere else
70+
// executed. Generated code will read this variable directly (I think).
71+
// FIXME: This belongs somewhere else (#2670)
7272
int check_claims = 0;
7373

7474
/**

src/rt/rust_builtin.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ rand_free(randctx *rctx) {
233233
/* Debug helpers strictly to verify ABI conformance.
234234
*
235235
* FIXME: move these into a testcase when the testsuite
236-
* understands how to have explicit C files included.
236+
* understands how to have explicit C files included. (#2688)
237237
*/
238238

239239
struct quad {
@@ -289,17 +289,18 @@ debug_opaque(type_desc *t, uint8_t *front) {
289289
LOG(task, stdlib, "debug_opaque");
290290
debug_tydesc_helper(t);
291291
// FIXME may want to actually account for alignment. `front` may not
292-
// indeed be the front byte of the passed-in argument.
292+
// indeed be the front byte of the passed-in argument. (#2667)
293293
for (uintptr_t i = 0; i < t->size; ++front, ++i) {
294294
LOG(task, stdlib, " byte %" PRIdPTR ": 0x%" PRIx8, i, *front);
295295
}
296296
}
297297

298-
// FIXME this no longer reflects the actual structure of boxes!
298+
// FIXME this no longer reflects the actual structure of boxes! (#2667)
299299
struct rust_box {
300300
RUST_REFCOUNTED(rust_box)
301301

302302
// FIXME `data` could be aligned differently from the actual box body data
303+
// (#2667)
303304
uint8_t data[];
304305
};
305306

@@ -635,7 +636,7 @@ extern "C" CDECL rust_task*
635636
rust_new_task_in_sched(rust_sched_id id) {
636637
rust_task *task = rust_get_current_task();
637638
rust_scheduler *sched = task->kernel->get_scheduler_by_id(id);
638-
// FIXME: What if we didn't get the scheduler?
639+
// FIXME: What if we didn't get the scheduler? (#2668)
639640
return new_task_common(sched, task);
640641
}
641642

src/rt/rust_debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class flag {
3434
flag(const char *in_name) : name(in_name), valid(false) {}
3535

3636
bool operator*() {
37-
// FIXME: We ought to lock this.
37+
// FIXME: We ought to lock this. (#2689)
3838
if (!valid) {
3939
char *ev = getenv(name);
4040
value = ev && ev[0] != '\0' && ev[0] != '0';

src/rt/rust_kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ rust_kernel::run() {
184184
return rval;
185185
}
186186

187-
// FIXME: Fix all these FIXMEs
187+
// FIXME: Fix all these FIXMEs (#2690)
188188
void
189189
rust_kernel::fail() {
190190
// FIXME: On windows we're getting "Application has requested the

src/rt/rust_log.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ rust_log::trace_ln(rust_task *task, uint32_t level, char *message) {
127127
}
128128

129129
// FIXME: The scheduler and task names used to have meaning,
130-
// but they are always equal to 'main' currently
130+
// but they are always equal to 'main' currently (#2672)
131131
#if 0
132132

133133
#if defined(__WIN32__)
@@ -234,7 +234,7 @@ void update_crate_map(const cratemap* map, log_directive* dirs,
234234
update_module_map(map->entries, dirs, n_dirs, n_matches);
235235
// Then recurse on linked crates
236236
// FIXME this does double work in diamond-shaped deps. could keep
237-
// a set of visited addresses, if it turns out to be actually slow
237+
// a set of visited addresses, if it turns out to be actually slow (#2673)
238238
for (size_t i = 0; map->children[i]; i++) {
239239
update_crate_map(map->children[i], dirs, n_dirs, n_matches);
240240
}

src/rt/rust_run_program.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ rust_run_program(const char* argv[],
160160
for (int fd = getdtablesize() - 1; fd >= 3; fd--) close(fd);
161161
if (dir) {
162162
int result = chdir(dir);
163-
// FIXME: need error handling
163+
// FIXME: need error handling (#2674)
164164
assert(!result && "chdir failed");
165165
}
166166

@@ -178,7 +178,7 @@ rust_run_program(const char* argv[],
178178

179179
extern "C" CDECL int
180180
rust_process_wait(int proc) {
181-
// FIXME: stub; exists to placate linker.
181+
// FIXME: stub; exists to placate linker. (#2692)
182182
return 0;
183183
}
184184

src/rt/rust_sched_loop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ rust_task *
134134
rust_sched_loop::schedule_task() {
135135
lock.must_have_lock();
136136
assert(this);
137-
// FIXME: in the face of failing tasks, this is not always right.
137+
// FIXME: in the face of failing tasks, this is not always right. (#2695)
138138
// assert(n_live_tasks() > 0);
139139
if (running_tasks.length() > 0) {
140140
size_t k = isaac_rand(&rctx);

0 commit comments

Comments
 (0)