From b278d675a231fdfe825c72e499d59e8a3d07ffaa Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 14 Mar 2012 17:24:19 -0700 Subject: rt: Look up ports through a single port table Instead of a two-level lookup, just use one big table --- src/rt/rust_port.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rt/rust_port.cpp') diff --git a/src/rt/rust_port.cpp b/src/rt/rust_port.cpp index e28dea0c02e..cf75e113c06 100644 --- a/src/rt/rust_port.cpp +++ b/src/rt/rust_port.cpp @@ -11,7 +11,7 @@ rust_port::rust_port(rust_task *task, size_t unit_sz) PRIxPTR, (uintptr_t)task, unit_sz, (uintptr_t)this); task->ref(); - id = task->register_port(this); + id = kernel->register_port(this); } rust_port::~rust_port() { @@ -39,7 +39,7 @@ void rust_port::deref() { void rust_port::begin_detach(uintptr_t *yield) { *yield = false; - task->release_port(id); + kernel->release_port_id(id); scoped_lock with(ref_lock); ref_count--; -- cgit 1.4.1-3-g733a5