提交 340aaf50 编写于 作者: C chegar

6807602: Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux

Reviewed-by: alanb
上级 7d9fc750
...@@ -111,11 +111,15 @@ extern jint NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout); ...@@ -111,11 +111,15 @@ extern jint NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout);
*/ */
/* /*
* Its safe to increase the buffer to 8K, this gives a 5-20% * On 64-bit JDKs we use a much larger stack and heap buffer.
* performance boost on volano and overall socket performance.
*/ */
#ifdef _LP64
#define MAX_BUFFER_LEN 65536
#define MAX_HEAP_BUFFER_LEN 131072
#else
#define MAX_BUFFER_LEN 8192 #define MAX_BUFFER_LEN 8192
#define MAX_HEAP_BUFFER_LEN 65536 #define MAX_HEAP_BUFFER_LEN 65536
#endif
#ifdef AF_INET6 #ifdef AF_INET6
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册