]> sourceware.org Git - systemtap.git/commitdiff
2006-01-04 Frank Ch. Eigler <fche@elastic.org>
authorfche <fche>
Wed, 4 Jan 2006 20:19:01 +0000 (20:19 +0000)
committerfche <fche>
Wed, 4 Jan 2006 20:19:01 +0000 (20:19 +0000)
PR 2057.
* translate.cxx (c_unparser_assignment::visit_arrayindex): Don't take
write lock around pmap accumulation.

ChangeLog
translate.cxx

index 65cca630654f1ec1e3d2c05230a6985ddf94aa23..892e8460fe2ec8c0c6d21e4541d331b715745764 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-04  Frank Ch. Eigler  <fche@elastic.org>
+
+       PR 2057.
+       * translate.cxx (c_unparser_assignment::visit_arrayindex): Don't take
+       write lock around pmap accumulation.
+
 2006-01-04  Will Cohen  <wcohen@redhat.com>
 
        * testsuite/buildok/printf.stp: Improve test coverage.
index 78788de955c9d42c149c5e68335d9b486c8f9102..5bad6bdf3ffd6d06f926343c680258a9cf3e35c6 100644 (file)
@@ -2964,9 +2964,9 @@ c_unparser_assignment::visit_arrayindex (arrayindex *e)
       // a statistic-valued map, there's a special form we follow:
       //
       // ({ tmp0=(idx0); ... tmpN=(idxN); rvar=(rhs); lvar; res;
-      //    lock (array);
+      //    *no need to* lock (array);
       //    _stp_map_add_stat (array, idx0...N, rvar);
-      //    unlock (array);
+      //    *no need to* unlock (array);
       //    rvar; })
       //
       // To simplify variable-allocation rules, we assign rvar to lvar and
@@ -2982,7 +2982,7 @@ c_unparser_assignment::visit_arrayindex (arrayindex *e)
 
          mapvar mvar = parent->getmap (array->referent, e->tok);
          o->newline() << "c->last_stmt = " << lex_cast_qstring(*e->tok) << ";";
-         varlock_w guard (*parent, mvar);
+         // NB: *no need to* varlock_w guard (*parent, mvar);
          o->newline() << mvar.add (idx, rvar) << ";";
          // dummy assignments
          o->newline() << lvar << " = " << rvar << ";";
This page took 0.045481 seconds and 5 git commands to generate.