Skip to content

Commit ee6bfa3

Browse files
committed
---
yaml --- r: 4243 b: refs/heads/master c: 3dd522b h: refs/heads/master i: 4241: 78ae241 4239: c6edb76 v: v3
1 parent 9fdb622 commit ee6bfa3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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: d0cb62ac90fb38a87b78691bf1436f6a14a67d71
2+
refs/heads/master: 3dd522b6b78fe32c44af571098d0ff4d1dcc9398

trunk/src/rt/rust_chan.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ bool rust_chan::is_associated() {
5151
* Unlink this channel from its associated port.
5252
*/
5353
void rust_chan::disassociate() {
54-
// Precondition: port->referent()->lock must be held
54+
A(kernel,
55+
port->referent()->lock.lock_held_by_current_thread(),
56+
"Port referent lock must be held to call rust_chan::disassociate");
5557
A(kernel, is_associated(),
5658
"Channel must be associated with a port.");
5759
if (port->is_proxy() == false) {

0 commit comments

Comments
 (0)