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

ObjectStreamClass should use long sun.misc.Unsafe field offsets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.2
    • 1.4.1
    • core-libs
    • None

      With the changes to sun.misc.Unsafe documented by bug 4679390 ("sun.misc.Unsafe
      needs to bind to new JVM native methods") integrated, ObjectStreamClass
      should be updated to use longs instead of ints to store field offsets, so as
      to improve portability to 64-bit architectures. This does not present
      an immediate issue with Sun's own 64-bit JVM, since according to the
      hotspot team, "truly long instance field offsets will never occur in any
      forseeable simple variation the Hotspot JVM. Heap objects are not so big as to
      require 64 bits to distinguish their fields." Such offsets may, however,
      crop up in other vendors' implementations of the JVM, in which case
      storing field offsets in variables of type long will improve portability.

            mwarressunw Michael Warres (Inactive)
            mwarressunw Michael Warres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: