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

[Lilliput/JDK17] Remove unnecessary check in G1ParScanThreadState

XMLWordPrintable

    • gc
    • generic
    • generic

      G1ParScanThreadState::do_copy_to_survivor_space() has an unnecessary change against upstream:

       if (old_mark.is_marked()) {
          // Already forwarded by somebody else, return forwardee.
          return old->forwardee(old_mark);
        }

      All callers of this method already do the same, so this only adds code and possible affects performance for no reason.

            rkennke Roman Kennke
            rkennke Roman Kennke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: