Skip to content

Commit 1679012

Browse files
author
Eric Holk
committed
---
yaml --- r: 3710 b: refs/heads/master c: 3958c72 h: refs/heads/master v: v3
1 parent bb7cd28 commit 1679012

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4739953b84b814de3b2b80f273f6292c33e33010
2+
refs/heads/master: 3958c72cd8c899bfc77a56ad859e31e13615c1c5

trunk/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);

trunk/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)