Make sure that Hotspot uses size_t and not int when object sizes are passed around

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • hs23
    • Affects Version/s: hs23
    • Component/s: hotspot
    • None
    • gc
    • generic
    • generic

      Parts of the code use int for passing around object sizes. Some example:

      * Allocation methods in CollectedHeap
      * Klass::oop_oop_iterate() returns the size of an object as an int
      * typeArrayKlass::object_size() returns an int

      Once all of the code uses size_t instead of int we should increase the maximum array size to be max_jint on 64 bit (without deducting the object header size). This means updating arrayOopDesc::max_array_length().

            Assignee:
            Bengt Rutisson (Inactive)
            Reporter:
            Bengt Rutisson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: