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

G1: Remove duplicate checks in G1BarrierSetC1::post_barrier

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • hotspot
    • gc
    • b05

    Description

      `G1BarrierSetC1::post_barrier` has the following checks:

      ```
        if (!new_val->is_register()) {
          XXX
        }
        assert(new_val->is_register(), "must be a register at this point");
        
        ...
        
        if (!new_val->is_register()) {
          YYY
        }
        assert(new_val->is_register(), "must be a register at this point");
      ```

      The second `if` is redundant and can be removed.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: