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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: