src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Method.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler

src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Method.java

Print this page
rev 6133 : 8005079: fix LogCompilation for incremental inlining
Summary: report late inlining as part of the rest of the inlining output
Reviewed-by:
rev 6134 : imported patch logcompilation-reviews


  34     private String arguments;
  35     private String bytes;
  36     private String iicount;
  37     private String flags;
  38 
  39     String decodeFlags(int osr_bci) {
  40         int f = Integer.parseInt(getFlags());
  41         char[] c = new char[4];
  42         Arrays.fill(c, ' ');
  43         if (osr_bci >= 0) {
  44             c[0] = '%';
  45         }
  46         if ((f & JVM_ACC_SYNCHRONIZED) != 0) {
  47             c[1] = 's';
  48         }
  49         return new String(c);
  50     }
  51 
  52     String format(int osr_bci) {
  53         if (osr_bci >= 0) {
  54             return getHolder().replace('/', '.') + "::" + getName() + " @ " + osr_bci + " (" + getBytes() + " bytes)";
  55         } else {
  56             return getHolder().replace('/', '.') + "::" + getName() + " (" + getBytes() + " bytes)";
  57         }
  58     }
  59 
  60     @Override
  61     public String toString() {
  62         return getHolder().replace('/', '.') + "::" + getName() + " (" + getBytes() + " bytes)";
  63     }
  64 
  65     public String getHolder() {
  66         return holder;
  67     }
  68 
  69     public void setHolder(String holder) {
  70         this.holder = holder;
  71     }
  72 
  73     public String getName() {
  74         return name;
  75     }
  76 
  77     public void setName(String name) {
  78         this.name = name;
  79     }
  80 
  81     public String getReturnType() {
  82         return returnType;


  99     }
 100 
 101     public void setBytes(String bytes) {
 102         this.bytes = bytes;
 103     }
 104 
 105     public String getIICount() {
 106         return iicount;
 107     }
 108 
 109     public void setIICount(String iicount) {
 110         this.iicount = iicount;
 111     }
 112 
 113     public String getFlags() {
 114         return flags;
 115     }
 116 
 117     public void setFlags(String flags) {
 118         this.flags = flags;










 119     }
 120 }


  34     private String arguments;
  35     private String bytes;
  36     private String iicount;
  37     private String flags;
  38 
  39     String decodeFlags(int osr_bci) {
  40         int f = Integer.parseInt(getFlags());
  41         char[] c = new char[4];
  42         Arrays.fill(c, ' ');
  43         if (osr_bci >= 0) {
  44             c[0] = '%';
  45         }
  46         if ((f & JVM_ACC_SYNCHRONIZED) != 0) {
  47             c[1] = 's';
  48         }
  49         return new String(c);
  50     }
  51 
  52     String format(int osr_bci) {
  53         if (osr_bci >= 0) {
  54             return getHolder() + "::" + getName() + " @ " + osr_bci + " (" + getBytes() + " bytes)";
  55         } else {
  56             return getHolder() + "::" + getName() + " (" + getBytes() + " bytes)";
  57         }
  58     }
  59 
  60     @Override
  61     public String toString() {
  62         return getHolder() + "::" + getName() + " (" + getBytes() + " bytes)";
  63     }
  64 
  65     public String getHolder() {
  66         return holder;
  67     }
  68 
  69     public void setHolder(String holder) {
  70         this.holder = holder;
  71     }
  72 
  73     public String getName() {
  74         return name;
  75     }
  76 
  77     public void setName(String name) {
  78         this.name = name;
  79     }
  80 
  81     public String getReturnType() {
  82         return returnType;


  99     }
 100 
 101     public void setBytes(String bytes) {
 102         this.bytes = bytes;
 103     }
 104 
 105     public String getIICount() {
 106         return iicount;
 107     }
 108 
 109     public void setIICount(String iicount) {
 110         this.iicount = iicount;
 111     }
 112 
 113     public String getFlags() {
 114         return flags;
 115     }
 116 
 117     public void setFlags(String flags) {
 118         this.flags = flags;
 119     }
 120     
 121     @Override
 122     public boolean equals(Object o) {
 123         if (o instanceof Method) {
 124             Method other = (Method)o;
 125             return holder.equals(other.holder) && name.equals(other.name) && 
 126                 arguments.equals(other.arguments) && returnType.equals(other.returnType);
 127         }
 128         return false;
 129     }
 130 }
src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Method.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File