diff options
author | fche <fche> | 2005-11-10 19:16:15 +0000 |
---|---|---|
committer | fche <fche> | 2005-11-10 19:16:15 +0000 |
commit | 02654aefdaf6d3aaa3ab3f5100cf5e1ce32c1d20 (patch) | |
tree | fb314484db62e719b08d935b83c4ee3bdd3942a5 | |
parent | 6099a10f01119ff54c1d23ca8d50ce03bd430958 (diff) | |
download | systemtap-steved-02654aefdaf6d3aaa3ab3f5100cf5e1ce32c1d20.tar.gz systemtap-steved-02654aefdaf6d3aaa3ab3f5100cf5e1ce32c1d20.tar.xz systemtap-steved-02654aefdaf6d3aaa3ab3f5100cf5e1ce32c1d20.zip |
2005-11-10 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (c_unparser::visit_array_in, visit_arrayindex):
Finish adapting to PR 1275 by switching back to read locks.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | translate.cxx | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2005-11-10 Frank Ch. Eigler <fche@elastic.org> + + * translate.cxx (c_unparser::visit_array_in, visit_arrayindex): + Finish adapting to PR 1275 by switching back to read locks. + 2005-11-09 Martin Hunt <hunt@redhat.com> * translate.cxx: New API uses HIST_LOG and HIST_LINEAR diff --git a/translate.cxx b/translate.cxx index 70abbc51..42ce3e45 100644 --- a/translate.cxx +++ b/translate.cxx @@ -1968,8 +1968,7 @@ c_unparser::visit_array_in (array_in* e) { // block used to control varlock_r lifespan mapvar mvar = getmap (e->operand->referent, e->tok); - // XXX: should be varlock_r, but runtime arrays reads mutate - varlock_w guard (*this, mvar); + varlock_r guard (*this, mvar); c_assign (res, mvar.exists(idx), e->tok); } @@ -2323,9 +2322,8 @@ c_unparser::visit_arrayindex (arrayindex* e) { // block used to control varlock_r lifespan mapvar mvar = getmap (e->referent, e->tok); - // XXX: should be varlock_r, but runtime arrays reads mutate o->newline() << "c->last_stmt = " << lex_cast_qstring(*e->tok) << ";"; - varlock_w guard (*this, mvar); + varlock_r guard (*this, mvar); c_assign (res, mvar.get(idx), e->tok); } |