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

SA: Allow larger object alignments

XMLWordPrintable

    • b21

        Found this when working on JOL support (CODETOOLS-7903364). If you try to attach to VM running with -XX:ObjectAlignmentInBytes=32, then SA would fail with:

        ```
        Caused by: java.lang.RuntimeException: Object alignment 32 not yet supported
        at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.<init>(VM.java:510)
        at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VM.initialize(VM.java:544)
        at jdk.hotspot.agent/sun.jvm.hotspot.HotSpotAgent.setupVM(HotSpotAgent.java:444)
        ```

        This code was added by JDK-6916623, but I don't see a reason why it should only handle 8 and 16 byte alignment.

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: