Author: dkulp
Date: Thu Jul 12 13:47:31 2012
New Revision: 1360674
URL: http://svn.apache.org/viewvc?rev=1360674&view=rev
Log:
Merged revisions 1360403 via git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk
........
r1360403 | dkulp | 2012-07-11 17:15:36 -0400 (Wed, 11 Jul 2012) | 3 lines
Change to ArrayBlockingQueue since size doesn't need to change and abq
doesn't need to create any objects for offer (less gc contention)
........
Modified:
cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Modified:
cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
URL:
http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java?rev=1360674&r1=1360673&r2=1360674&view=diff
==============================================================================
---
cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
(original)
+++
cxf/branches/2.6.x-fixes/api/src/main/java/org/apache/cxf/staxutils/StaxUtils.java
Thu Jul 12 13:47:31 2012
@@ -27,8 +27,8 @@ import java.io.Writer;
import java.net.URL;
import java.util.Iterator;
import java.util.Stack;
+import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
-import java.util.concurrent.LinkedBlockingQueue;
import java.util.logging.Logger;
import javax.xml.namespace.NamespaceContext;
@@ -117,8 +117,8 @@ public final class StaxUtils {
if (i <= 0) {
i = 20;
}
- NS_AWARE_INPUT_FACTORY_POOL = new
LinkedBlockingQueue<XMLInputFactory>(i);
- OUTPUT_FACTORY_POOL = new LinkedBlockingQueue<XMLOutputFactory>(i);
+ NS_AWARE_INPUT_FACTORY_POOL = new
ArrayBlockingQueue<XMLInputFactory>(i);
+ OUTPUT_FACTORY_POOL = new ArrayBlockingQueue<XMLOutputFactory>(i);
try {
String s =
SystemPropertyAction.getProperty(INNER_ELEMENT_LEVEL_SYSTEM_PROP, "-1");
innerElementLevelThreshold = Integer.parseInt(s);