Compact assignment of field offsets

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 1.4.0
    • Affects Version/s: 1.3.0
    • Component/s: hotspot
    • beta
    • generic
    • solaris_2.5.1
    • Verified

      High-performance compilers conventionally sort the field of objects
      by alignment restriction so that space isn't wasted between fields.
      In the present system short, char, byte and bool fields all use a
      full word. This simplifies interpretation but wastes space and impacts
      cache efficiency. The problem is worse when words are 64 bits.

      It would be better to compute an optimal packing at class load time;
      the speed of compiled code would be unaffected.

            Assignee:
            Bob Vandette (Inactive)
            Reporter:
            David Stoutamire (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: