From c7777f4fd97b053ca707b05fae0b4b793b189d3b Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 3 Feb 2012 17:31:00 -0800 Subject: rt: Add sanity checks when we hit the max task/port id --- src/rt/rust_task.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rt/rust_task.cpp') diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index 1563fe63516..136b00e1f56 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -628,6 +628,7 @@ rust_port_id rust_task::register_port(rust_port *port) { scoped_lock with(lock); rust_port_id id = next_port_id++; + A(thread, id != INTPTR_MAX, "Hit the maximum port id"); port_table.put(id, port); return id; } -- cgit 1.4.1-3-g733a5