/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java
int poolSize = Runtime.getRuntime( ).getRuntime( ) * 2;
int poolSize = Runtime.getRuntime ( ) .availableProcessors ( ) * 2;
this.xform = javax.xml.transform.TransformerFactory.newInstance(); Context ctx = Context.getCurrentContext(); if (ctx == null || ctx.hasFeature(Context.FEATURE_ENABLE_XML_SECURE_PARSING)) { configureSecureDBF(this.dom); configureSecureTF(this.xform); } <extra_id_0> this.documentBuilderPool = new LinkedBlockingDeque<DocumentBuilder>(poolSize); } private void configureSecureDBF(DocumentBuilderFactory dbf) { try { dbf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); dbf.setXIncludeAware(false);