Skip to content

Commit 04ee592

Browse files
committed
---
yaml --- r: 64981 b: refs/heads/snap-stage3 c: cde6ad3 h: refs/heads/master i: 64979: 1bd7d7c v: v3
1 parent 92d986b commit 04ee592

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: be7738bfa18989438e3597847cd6a7f3bbbfac12
4+
refs/heads/snap-stage3: cde6ad39920ddadd7c70921232ae92adff258367
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/rt/comm.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ impl<T> ChanOne<T> {
131131
// acquire barrier that keeps the subsequent access of the
132132
// ~Task pointer from being reordered.
133133
let oldstate = (*packet).state.swap(STATE_ONE, SeqCst);
134+
135+
// Suppress the synchronizing actions in the finalizer. We're
136+
// done with the packet. NB: In case of do_resched, this *must*
137+
// happen before waking up a blocked task (or be unkillable),
138+
// because we might get a kill signal during the reschedule.
139+
this.suppress_finalize = true;
140+
134141
match oldstate {
135142
STATE_BOTH => {
136143
// Port is not waiting yet. Nothing to do
@@ -165,8 +172,6 @@ impl<T> ChanOne<T> {
165172
}
166173
}
167174

168-
// Suppress the synchronizing actions in the finalizer. We're done with the packet.
169-
this.suppress_finalize = true;
170175
return recvr_active;
171176
}
172177
}

0 commit comments

Comments
 (0)