Some cleanup

This commit is contained in:
Eric Holk 2011-07-07 18:32:45 -07:00
parent 4739953b84
commit 3958c72cd8
2 changed files with 1 additions and 8 deletions

View File

@ -2,13 +2,6 @@
#ifndef MEMORY_H
#define MEMORY_H
#if 0
inline void operator delete(void *mem, rust_task *task) {
task->free(mem);
return;
}
#endif
// FIXME: It would be really nice to be able to get rid of this.
inline void *operator new[](size_t size, rust_task *task) {
return task->malloc(size);

View File

@ -88,7 +88,7 @@ void rust_chan::send(void *sptr) {
buffer.dequeue(NULL);
} else {
rust_port *target_port = port->referent();
scoped_lock right(target_port->lock);
scoped_lock with(target_port->lock);
if (target_port->task->blocked_on(target_port)) {
DLOG(sched, comm, "dequeued in rendezvous_ptr");
buffer.dequeue(target_port->task->rendezvous_ptr);