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

G1: heap region indices should be size_t

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • hs22
    • hs14
    • hotspot
    • gc
    • b02
    • generic
    • generic
    • Not verified

        Some g1 code uses int variables as region indices; they should use size_t instead. A few examples from heapRegionSeq.hpp:

        int _alloc_search_start;
        HeapWord* alloc_obj_from_region_index(int ind, size_t word_size);
        int _next_rr_candidate;
        int find(HeapRegion* hr);
        void iterate_from(int idx, HeapRegionClosure* blk);

              tonyp Tony Printezis
              jcoomes John Coomes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: