projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f056b4a
)
checking bug fix for memory queue, the jury is still out on the formal verification...
author
jjenista
<jjenista>
Mon, 16 Aug 2010 21:35:34 +0000
(21:35 +0000)
committer
jjenista
<jjenista>
Mon, 16 Aug 2010 21:35:34 +0000
(21:35 +0000)
Robust/src/Runtime/mlp_runtime.c
patch
|
blob
|
history
diff --git
a/Robust/src/Runtime/mlp_runtime.c
b/Robust/src/Runtime/mlp_runtime.c
index a9cdb3e0d377a812d20a0297efe9d447b8802d6b..b7a87b559d49465d17953a66ca68629706ee7b73 100644
(file)
--- a/
Robust/src/Runtime/mlp_runtime.c
+++ b/
Robust/src/Runtime/mlp_runtime.c
@@
-515,7
+515,8
@@
ADDVECTOR(MemoryQueue *Q, REntry *r) {
flag=(void*)LOCKXCHG((unsigned INTPTR*)&(V->array[index]), (unsigned INTPTR)flag);
if (flag!=NULL) {
if (isParentCoarse(r)) { //parent's retire immediately
- atomic_dec(&V->item.total);
+ atomic_dec(&V->item.total);
+ V->index--;
}
return READY;
} else {