Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8278601

Parallel: Remove redundant code in ObjectStartArray::initialize

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • 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.

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

              Created:
              Updated:
              Resolved: