Skip to content

Commit 9471868

Browse files
committed
---
yaml --- r: 14602 b: refs/heads/try c: ed7d25b h: refs/heads/master v: v3
1 parent 4e58fde commit 9471868

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 04d9cc18a569f5d8a8b7c2c07a42259af41d7cb3
5+
refs/heads/try: ed7d25bb6d9955a867b2c2467a44c9e69bbc7f2e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rt/rust_task.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@ void
108108
rust_task::delete_this()
109109
{
110110
I(thread, !thread->lock.lock_held_by_current_thread());
111-
I(thread, port_table.is_empty());
111+
112+
{
113+
scoped_lock with (lock);
114+
I(thread, port_table.is_empty());
115+
}
116+
112117
DLOG(thread, task, "~rust_task %s @0x%" PRIxPTR ", refcnt=%d",
113118
name, (uintptr_t)this, ref_count);
114119

0 commit comments

Comments
 (0)