Skip to content

Commit e3f2165

Browse files
author
pkumbras
committed
Fixed assert in steal_task
Signed-off-by: pkumbras <[email protected]>
1 parent 6e975a8 commit e3f2165

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tbb/arena_slot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ d1::task* arena_slot::get_task(execution_data_ext& ed, isolation_type isolation)
145145

146146
d1::task* arena_slot::steal_task(isolation_type isolation) {
147147
d1::task** victim_pool = lock_task_pool();
148-
__TBB_ASSERT(shadow_head.load(std::memory_order_relaxed) == head.load(std::memory_order_relaxed), nullptr);
149148
if (!victim_pool) {
150149
return nullptr;
151150
}
152151
d1::task* result = nullptr;
153152
std::size_t H = head.load(std::memory_order_relaxed); // mirror
153+
__TBB_ASSERT(shadow_head.load(std::memory_order_relaxed) == H, nullptr);
154154
std::size_t H0 = H;
155155
bool tasks_omitted = false;
156156
do {

0 commit comments

Comments
 (0)