提交 e88fb400 编写于 作者: J jiefu

8229020: Failure on CPUs allowing loads reordering: assert(_tasks[t] == 1) failed: What else?

Reviewed-by: tschatzl, kbarrett
上级 ca14c17c
......@@ -464,7 +464,6 @@ bool SubTasksDone::is_task_claimed(uint t) {
if (old == 0) {
old = Atomic::cmpxchg(1, &_tasks[t], 0);
}
assert(_tasks[t] == 1, "What else?");
bool res = old != 0;
#ifdef ASSERT
if (!res) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册