diff options
-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); } |