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

SA CodeBlob.java has assert incompatible with Linux/x64 support.

    • svc
    • b01
    • x86
    • linux

      Assert in CodeBlob.java prevents using the SA tools for JDK5 on Linux/x64 (amd64).

          [JDK-7021332] SA CodeBlob.java has assert incompatible with Linux/x64 support.

          Kevin Walls added a comment -
          BT2:EVALUATION

          I've been running with just removing the assert:

          (5.10)$ hg diff agent/src/share/classes/sun/jvm/hotspot/code/CodeBlob.java
          ...
          @@ -190,7 +190,6 @@ public class CodeBlob extends VMObject {
             public int getLinkOffset() {
               if (Assert.ASSERTS_ENABLED) {
                 Assert.that(VM.getVM().isServerCompiler(), "Only used on C2 x86");
          - Assert.that(VM.getVM().getCPU().equals("x86"), "Only used on C2 x86");
               }

          Kevin Walls added a comment - BT2:EVALUATION I've been running with just removing the assert: (5.10)$ hg diff agent/src/share/classes/sun/jvm/hotspot/code/CodeBlob.java ... @@ -190,7 +190,6 @@ public class CodeBlob extends VMObject {    public int getLinkOffset() {      if (Assert.ASSERTS_ENABLED) {        Assert.that(VM.getVM().isServerCompiler(), "Only used on C2 x86"); - Assert.that(VM.getVM().getCPU().equals("x86"), "Only used on C2 x86");      }

            kevinw Kevin Walls
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: