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

ConcurrentG1Refine uses ints for many of its members that should be unsigned types

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b110

      Description

      The members:
        int _green_zone;
        int _yellow_zone;
        int _red_zone;

        int _thread_threshold_step;

      of ConcurrentG1Refine should be some unsigned quantity, not signed. That will also allow removal of lots of safety "if (XY >= 0 && ...)" checks in the code.

      There is a preliminary patch attached that fixes that.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jprovino Joseph Provino (Inactive)
                Reporter:
                tschatzl Thomas Schatzl
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: