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

Swap conditions order in PSScavengeCLDOopClosure::do_oop(oop*)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • hotspot
    • gc
    • master

      The current condition is:

      if (PSScavenge::is_obj_in_young(new_obj) && !_has_oops_into_young_gen) {

      As noted during the review of JDK-8367347, if we swap the order we'll have the trivial check first. This could be easier for readers and the branch predictor.

            fandreuzzi Francesco Andreuzzi
            fandreuzzi Francesco Andreuzzi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: