rt: Change the rust_port refcounting scheme to avoid races

Hopefully...
This commit is contained in:
Brian Anderson
2012-03-06 15:31:21 -08:00
parent e9571850da
commit dc0b9f44e2
3 changed files with 27 additions and 22 deletions

View File

@@ -497,7 +497,6 @@ extern "C" CDECL void
del_port(rust_port *port) {
rust_task *task = rust_task_thread::get_task();
LOG(task, comm, "del_port(0x%" PRIxPTR ")", (uintptr_t) port);
A(task->thread, port->get_ref_count() == 0, "Expected port ref_count == 0");
delete port;
}