File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
branches/snap-stage3/src/rt Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 12fa90888e56c81088e30edd26d1bc404b3e334d
4
+ refs/heads/snap-stage3: c7777f4fd97b053ca707b05fae0b4b793b189d3b
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ rust_kernel::register_task(rust_task *task) {
89
89
task->user .id = max_task_id++;
90
90
task_table.put (task->user .id , task);
91
91
}
92
+ K (srv, task->user .id != INTPTR_MAX, " Hit the maximum task id" );
92
93
KLOG_ (" Registered task %" PRIdPTR, task->user .id );
93
94
int new_live_tasks = sync::increment (live_tasks);
94
95
KLOG_ (" Total outstanding tasks: %d" , new_live_tasks);
Original file line number Diff line number Diff line change @@ -628,6 +628,7 @@ rust_port_id rust_task::register_port(rust_port *port) {
628
628
scoped_lock with (lock);
629
629
630
630
rust_port_id id = next_port_id++;
631
+ A (thread, id != INTPTR_MAX, " Hit the maximum port id" );
631
632
port_table.put (id, port);
632
633
return id;
633
634
}
You can’t perform that action at this time.
0 commit comments