G1: Clean up code in ptrQueue.[ch]pp and ptrQueue.inline.hpp

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 9
    • Affects Version/s: 7
    • Component/s: hotspot
    • gc
    • b94
    • generic
    • generic

        During the code reviews for 6895788 a comment was made about the cleanliness of the current code in ptrQueue.hpp, ptrQueue.cpp, and ptrQueue.hpp.

        There are:
          * duplicated service routines (defined in the PtrQueue class and static within the .cpp file).

          * unused routines.

          * Loops that have strides other than 1 (which can be rewritten).

        We also allocate an additional data structure that has one entry for each completed buffer (CompletedBufferNode) that is unnecessary. The completed buffers could be chained in some other way.

        It would be desirable to clean up this code.

              Assignee:
              Kim Barrett
              Reporter:
              John Cuthbertson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: