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

WIN64: CMM alignment problems on Win64

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b28
    • CPU:
      itanium
    • OS:
      windows_2000, windows_xp

      Backports

        Description

        We are in the final phases of our Win64 version and have been
        running the JCK quite a lot and came across some problems with
        the ColorModel tests.

        In your cmm.dll and the source code to it are not Win64 compatible.
        The problem has to do with field alignment in some of the structures.
        In our case it was the sprofile.h that has a number of structs
        of the kind:

           typedef struct {
              KpUInt32_t Count;
              KpUInt32_t FAR *Values;
           } SpUInt32s_t;

        The problem is that the Values field will not be 8-byte aligned
        which is required by Win64. We verified that you have the same
        problem in the binary beta (1.4.1_b15?) that you have released.

        Our patch:

           typedef struct {
              KpUInt32_t Count;
              KpUInt32_t padding;
              KpUInt32_t FAR *Values;
           } SpUInt32s_t;

        makes the system work again, but we have only fixed this problem in
        sprofile.h, there seems to be a danger that the same problem exists
        in some of the other header files for CMM.

        *** Please review CMM code and put appropriate fixes in place! ***

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                campbell Christopher Campbell (Inactive)
                Reporter:
                clucasius Carlos Lucasius (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: