Parallel: Remove redundant code in ObjectStartArray::initialize

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 19
    • Component/s: hotspot
    • gc
    • b03

      In `ObjectStartArray::initialize`:

      ```
        ...
        MemTracker::record_virtual_memory_type((address)backing_store.base(), mtGC);

        _virtual_space.initialize(backing_store);

        _raw_base = (jbyte*)_virtual_space.low_boundary();
        ...
        MemTracker::record_virtual_memory_type((address)_raw_base, mtGC);
      ```

      Inspecting the `_virtual_space.initialize` and `_virtual_space.low_boundary`, one can see `_raw_base == backing_store.base()`. Therefore, the second `record_virtual_memory_type` is redundant.

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

              Created:
              Updated:
              Resolved: