Skip to content

Commit 464c8af

Browse files
committed
---
yaml --- r: 11639 b: refs/heads/master c: 0432030 h: refs/heads/master i: 11637: 91d0d2c 11635: 72a7268 11631: f3cf088 v: v3
1 parent e797410 commit 464c8af

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 43f9f4d54ab7a0b61bce06e017c715e2f4cc85de
2+
refs/heads/master: 0432030c2727183f3cbda0263de2ca2b90c37353
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/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)