File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 4739953b84b814de3b2b80f273f6292c33e33010
2
+ refs/heads/master: 3958c72cd8c899bfc77a56ad859e31e13615c1c5
Original file line number Diff line number Diff line change 2
2
#ifndef MEMORY_H
3
3
#define MEMORY_H
4
4
5
- #if 0
6
- inline void operator delete(void *mem, rust_task *task) {
7
- task->free(mem);
8
- return;
9
- }
10
- #endif
11
-
12
5
// FIXME: It would be really nice to be able to get rid of this.
13
6
inline void *operator new [](size_t size, rust_task *task) {
14
7
return task->malloc (size);
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ void rust_chan::send(void *sptr) {
88
88
buffer.dequeue (NULL );
89
89
} else {
90
90
rust_port *target_port = port->referent ();
91
- scoped_lock right (target_port->lock );
91
+ scoped_lock with (target_port->lock );
92
92
if (target_port->task ->blocked_on (target_port)) {
93
93
DLOG (sched, comm, " dequeued in rendezvous_ptr" );
94
94
buffer.dequeue (target_port->task ->rendezvous_ptr );
You can’t perform that action at this time.
0 commit comments