Author: sebb
Date: Sat Jan 17 12:47:01 2015
New Revision: 1652598

URL: http://svn.apache.org/r1652598
Log:
BCEL-186 Performance degradation with the UTF8 cache
Oops - forget the default value

Modified:
    
commons/proper/bcel/trunk/src/main/java/org/apache/bcel/classfile/ConstantUtf8.java

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=1652598&r1=1652597&r2=1652598&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
 Sat Jan 17 12:47:01 2015
@@ -46,7 +46,7 @@ public final class ConstantUtf8 extends
     private static volatile int created = 0;
 
     // Set the size to 0 or below to skip caching entirely
-    private static final int MAX_CACHED_SIZE = 
Integer.getInteger("bcel.maxcached.size");
+    private static final int MAX_CACHED_SIZE = 
Integer.getInteger("bcel.maxcached.size", 200).intValue();
     private static final boolean BCEL_STATISTICS = 
Boolean.getBoolean("bcel.statistics");
 
 


Reply via email to