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
*** old/src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Method.java	Tue Mar 25 14:56:09 2014
--- new/src/share/tools/LogCompilation/src/com/sun/hotspot/tools/compiler/Method.java	Tue Mar 25 14:56:09 2014

*** 49,67 **** --- 49,67 ---- return new String(c); } String format(int osr_bci) { if (osr_bci >= 0) { - return getHolder().replace('/', '.') + "::" + getName() + " @ " + osr_bci + " (" + getBytes() + " bytes)"; } else { - return getHolder().replace('/', '.') + "::" + getName() + " (" + getBytes() + " bytes)"; } } @Override public String toString() { - return getHolder().replace('/', '.') + "::" + getName() + " (" + getBytes() + " bytes)"; } public String getHolder() { return holder; }
*** 115,120 **** --- 115,130 ---- } public void setFlags(String flags) { this.flags = flags; } + + @Override + public boolean equals(Object o) { + if (o instanceof Method) { + Method other = (Method)o; + return holder.equals(other.holder) && name.equals(other.name) && + arguments.equals(other.arguments) && returnType.equals(other.returnType); + } + return false; + } }

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