projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1806071
)
index field of rentry is only for RCR, add guard condition to accessing index field.
author
yeom
<yeom>
Thu, 11 Nov 2010 04:02:46 +0000
(
04:02
+0000)
committer
yeom
<yeom>
Thu, 11 Nov 2010 04:02:46 +0000
(
04:02
+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 542dad31fe2d6256b367d69bf74e2bf57e5b99b9..7bc8c57968267be44980fc00938a36586f5fa117 100644
(file)
--- a/
Robust/src/Runtime/mlp_runtime.c
+++ b/
Robust/src/Runtime/mlp_runtime.c
@@
-534,7
+534,9
@@
int ADDVECTOR(MemoryQueue *Q, REntry *r) {
//expose entry
int index=V->index;
V->array[index]=r;
+#ifdef RCR
r->index=index;
+#endif
//*****NEED memory barrier here to ensure compiler does not reorder writes to V.array and V.index
BARRIER();
V->index++;