6807602: Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux
Reviewed-by: alanb
--- 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