Skip to content

Commit ef11d81

Browse files
committed
---
yaml --- r: 14645 b: refs/heads/try c: 0432030 h: refs/heads/master i: 14643: 0581c60 v: v3
1 parent 4fbe452 commit ef11d81

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
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: 43f9f4d54ab7a0b61bce06e017c715e2f4cc85de
5+
refs/heads/try: 0432030c2727183f3cbda0263de2ca2b90c37353
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rt/rust_task.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,6 @@ rust_task::transition(rust_task_list *src, rust_task_list *dst) {
421421

422422
void
423423
rust_task::block(rust_cond *on, const char* name) {
424-
I(thread, !lock.lock_held_by_current_thread());
425-
scoped_lock with(lock);
426424
LOG(this, task, "Blocking on 0x%" PRIxPTR ", cond: 0x%" PRIxPTR,
427425
(uintptr_t) on, (uintptr_t) cond);
428426
A(thread, cond == NULL, "Cannot block an already blocked task.");
@@ -435,8 +433,6 @@ rust_task::block(rust_cond *on, const char* name) {
435433

436434
void
437435
rust_task::wakeup(rust_cond *from) {
438-
I(thread, !lock.lock_held_by_current_thread());
439-
scoped_lock with(lock);
440436
A(thread, cond != NULL, "Cannot wake up unblocked task.");
441437
LOG(this, task, "Blocked on 0x%" PRIxPTR " woken up on 0x%" PRIxPTR,
442438
(uintptr_t) cond, (uintptr_t) from);
@@ -449,8 +445,6 @@ rust_task::wakeup(rust_cond *from) {
449445

450446
void
451447
rust_task::die() {
452-
I(thread, !lock.lock_held_by_current_thread());
453-
scoped_lock with(lock);
454448
transition(&thread->running_tasks, &thread->dead_tasks);
455449
}
456450

0 commit comments

Comments
 (0)