G1: Remove unused local declaration in G1BarrierSetC2

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: None
    • Component/s: hotspot
    • gc
    • master

      ```
      Node* G1BarrierSetC2::atomic_xchg_at_resolved(C2AtomicParseAccess& access, Node* new_val, const Type* value_type) const {
        GraphKit* kit = access.kit();
        if (!access.is_oop()) {
          return BarrierSetC2::atomic_xchg_at_resolved(access, new_val, value_type);
        }
        access.set_barrier_data(G1C2BarrierPre | G1C2BarrierPost);
        return BarrierSetC2::atomic_xchg_at_resolved(access, new_val, value_type);
      }
      ```

      `kit` is unused. The same unused-var also occurs in `atomic_cmpxchg_val_at_resolved` and `atomic_cmpxchg_bool_at_resolved`

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: