Skip to content

Commit 361077b

Browse files
committed
---
yaml --- r: 11046 b: refs/heads/master c: c7777f4 h: refs/heads/master v: v3
1 parent c124097 commit 361077b

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
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: 12fa90888e56c81088e30edd26d1bc404b3e334d
2+
refs/heads/master: c7777f4fd97b053ca707b05fae0b4b793b189d3b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rt/rust_kernel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ rust_kernel::register_task(rust_task *task) {
8989
task->user.id = max_task_id++;
9090
task_table.put(task->user.id, task);
9191
}
92+
K(srv, task->user.id != INTPTR_MAX, "Hit the maximum task id");
9293
KLOG_("Registered task %" PRIdPTR, task->user.id);
9394
int new_live_tasks = sync::increment(live_tasks);
9495
KLOG_("Total outstanding tasks: %d", new_live_tasks);

trunk/src/rt/rust_task.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ rust_port_id rust_task::register_port(rust_port *port) {
628628
scoped_lock with(lock);
629629

630630
rust_port_id id = next_port_id++;
631+
A(thread, id != INTPTR_MAX, "Hit the maximum port id");
631632
port_table.put(id, port);
632633
return id;
633634
}

0 commit comments

Comments
 (0)