changeset 2938:b3338e271fcb

6807602: Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux Reviewed-by: alanb
author chegar
date Fri, 29 May 2009 15:51:43 +0100
parents a2a950ba257f
children 958dd4d51d1e
files jdk/src/solaris/native/java/net/net_util_md.h
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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