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

64-Bit indexing for arrays

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.1, 5.0
    • specification
    • itanium
    • linux, windows_2000

      Name: jl125535 Date: 06/18/2003


      A DESCRIPTION OF THE PROBLEM :
      Array indexes are int-based! You cannot allocate an array
      of any type that has more than 2^31 objects. (See the
      Java Language Specification, Section 10.4 at
      http://java.sun.com/docs/books/jls/second_edition/html/arrays.doc.html#25566)

      API: Every Collection API can carry only 2^31 objects.

      This RFE will also affect the JVM-Spec, 'cause the JVM can
      handle only int-based array-indexes, as I know.

      This is not covered by the current 64-Bit Version of the
      runtime, because these versions give only support for the
      memory management of the runtime itself - not for the
      language constructs directly.

      This is maybe an issue for the JCP ?


      CUSTOMER WORKAROUND :
      An array of arrays.
      But this descreases the performance by the factor of 2 or more.
      (Review ID: 180497)
      ======================================================================

            abuckley Alex Buckley
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: