mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
6807602: Increase MAX_BUFFER_LEN and MAX_HEAP_BUFFER_LEN on 64-bit Solaris and Linux
Reviewed-by: alanb
This commit is contained in:
parent
ac9b9ad0ea
commit
9641cb498c
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue