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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • hs23
    • hs23
    • 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().

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: