Skip to content

Commit 3958c72

Browse files
author
Eric Holk
committed
Some cleanup
1 parent 4739953 commit 3958c72

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/rt/memory.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
#ifndef MEMORY_H
33
#define MEMORY_H
44

5-
#if 0
6-
inline void operator delete(void *mem, rust_task *task) {
7-
task->free(mem);
8-
return;
9-
}
10-
#endif
11-
125
// FIXME: It would be really nice to be able to get rid of this.
136
inline void *operator new[](size_t size, rust_task *task) {
147
return task->malloc(size);

src/rt/rust_chan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void rust_chan::send(void *sptr) {
8888
buffer.dequeue(NULL);
8989
} else {
9090
rust_port *target_port = port->referent();
91-
scoped_lock right(target_port->lock);
91+
scoped_lock with(target_port->lock);
9292
if (target_port->task->blocked_on(target_port)) {
9393
DLOG(sched, comm, "dequeued in rendezvous_ptr");
9494
buffer.dequeue(target_port->task->rendezvous_ptr);

0 commit comments

Comments
 (0)