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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b110

      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.

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

              Created:
              Updated:
              Resolved: