Cleanups after Atomic<T> conversion

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: hotspot
    • gc

      Clean up after Atomic<T> conversions:

      - remove missed unnecessary "AtomicAccess" includes
      - add missing "AtomicAccess" includes
      - change looping initialization of members to single-line array initialization, e.g.

      for (int j = 0; j < X; j++) {
        ::new (&_region_mark_stats[i]) G1RegionMarkStats();
      }

      to

      ::new (&_region_mark_stats) G1RegionMarkStats[X]();

      - resets should probably also use above construct instead of the explicit loops

      - remove now unnecessary default constructors that were added because previously Atomic<T> required an explicit constructor

      - ReferenceProcessorPhaseTimes::_ref_dropped should get an explicit initialzation in the initalizer list

      Splt as necessary

            Assignee:
            Thomas Schatzl
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: