Author: sebb
Date: Fri Jan 16 22:58:51 2015
New Revision: 1652541
URL: http://svn.apache.org/r1652541
Log:
BCEL-186 Performance degradation with the UTF8 cache
getInstance no longer uses the cache
Modified:
commons/proper/bcel/trunk/src/changes/changes.xml
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
Modified: commons/proper/bcel/trunk/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/changes/changes.xml?rev=1652541&r1=1652540&r2=1652541&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/changes/changes.xml (original)
+++ commons/proper/bcel/trunk/src/changes/changes.xml Fri Jan 16 22:58:51 2015
@@ -63,6 +63,10 @@ The <action> type attribute can be add,u
<body>
<release version="6.0" date="TBA" description="Major release with Java 7
and 8 support">
+ <action issue="BCEL-186" type="fix" dev="sebb">
+ Performance degradation with the UTF8 cache
+ getInstance no longer uses cache
+ </action>
<action issue="BCEL-181" type="fix" dev="ggregory">
org.apache.bcel.util.ClassLoaderRepository.loadClass(String) leaks
input streams.
</action>
Modified:
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
URL:
http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java?rev=1652541&r1=1652540&r2=1652541&view=diff
==============================================================================
---
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
(original)
+++
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java
Fri Jan 16 22:58:51 2015
@@ -90,7 +90,7 @@ public final class ConstantUtf8 extends
}
public static ConstantUtf8 getInstance(String s) {
- return getCachedInstance(s);
+ return new ConstantUtf8(s);
}
public static ConstantUtf8 getInstance (DataInput input) throws
IOException {