6807602: Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux
authorchegar
Fri, 29 May 2009 15:51:43 +0100
changeset 2938 b3338e271fcb
parent 2937 a2a950ba257f
child 2939 958dd4d51d1e
6807602: Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux Reviewed-by: alanb
jdk/src/solaris/native/java/net/net_util_md.h
--- a/jdk/src/solaris/native/java/net/net_util_md.h	Wed May 27 15:32:21 2009 -0700
+++ b/jdk/src/solaris/native/java/net/net_util_md.h	Fri May 29 15:51:43 2009 +0100
@@ -111,11 +111,15 @@
  */
 
 /*
- * Its safe to increase the buffer to 8K, this gives a 5-20%
- * performance boost on volano and overall socket performance.
+ * On 64-bit JDKs we use a much larger stack and heap buffer.
  */
+#ifdef _LP64
+#define MAX_BUFFER_LEN 65536
+#define MAX_HEAP_BUFFER_LEN 131072
+#else
 #define MAX_BUFFER_LEN 8192
 #define MAX_HEAP_BUFFER_LEN 65536
+#endif
 
 #ifdef AF_INET6