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

Compact assignment of field offsets

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.3.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: