Author: remy.maucherat(a)jboss.com
Date: 2013-05-27 06:34:35 -0400 (Mon, 27 May 2013)
New Revision: 2203
Modified:
branches/8.0.x/src/main/java/org/apache/coyote/http11/InternalAprOutputBuffer.java
branches/8.0.x/src/main/java/org/apache/coyote/http11/InternalOutputBuffer.java
Log:
Try preloading the Constants class.
Modified:
branches/8.0.x/src/main/java/org/apache/coyote/http11/InternalAprOutputBuffer.java
===================================================================
---
branches/8.0.x/src/main/java/org/apache/coyote/http11/InternalAprOutputBuffer.java 2013-05-23
14:32:08 UTC (rev 2202)
+++
branches/8.0.x/src/main/java/org/apache/coyote/http11/InternalAprOutputBuffer.java 2013-05-27
10:34:35 UTC (rev 2203)
@@ -59,7 +59,7 @@
headers = response.getMimeHeaders();
buf = new byte[headerBufferSize];
- if (headerBufferSize < (8 * 1024)) {
+ if (headerBufferSize < Constants.DEFAULT_HTTP_HEADER_BUFFER_SIZE) {
bbuf = ByteBuffer.allocateDirect(6 * 1500);
} else {
bbuf = ByteBuffer.allocateDirect((headerBufferSize / 1500 + 1) * 1500);
Modified: branches/8.0.x/src/main/java/org/apache/coyote/http11/InternalOutputBuffer.java
===================================================================
---
branches/8.0.x/src/main/java/org/apache/coyote/http11/InternalOutputBuffer.java 2013-05-23
14:32:08 UTC (rev 2202)
+++
branches/8.0.x/src/main/java/org/apache/coyote/http11/InternalOutputBuffer.java 2013-05-27
10:34:35 UTC (rev 2203)
@@ -77,6 +77,9 @@
committed = false;
finished = false;
+ // Cause loading of Constants
+ int foo = Constants.HTTP_11_BYTES[0];
+
}
Show replies by date