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

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • hs23
    • hs23
    • hotspot
    • None
    • gc
    • generic
    • generic

    Description

      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().

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: