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

Close alignment gaps in InstanceKlass

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      There are a couple of alignment gaps in InstanceKlass that should be filled with rearranging a couple of fields.

        // The NestMembers attribute. An array of shorts, where each is a
        // class info index for the class that is a nest member. This data
        // has not been validated.
        Array<jushort>* _nest_members;

        // The NestHost attribute. The class info index for the class
        // that is the nest-host of this class. This data has not been validated.
        jushort _nest_host_index;

        // Resolved nest-host klass: either true nest-host or self if we are not nested.
        // By always being set it makes nest-member access checks simpler.
        InstanceKlass* _nest_host;

      Also misc_flags needs to be a u4, so should be moved down or up.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                coleenp Coleen Phillimore
                Reporter:
                coleenp Coleen Phillimore
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: