|
Quick Lists
|
|
Bug ID:
|
6631966
|
|
Votes
|
0
|
|
Synopsis
|
(process) Raise Windows pipe buffer size an extra 24 bytes (win)
|
|
Category
|
java:classes_lang
|
|
Reported Against
|
|
|
Release Fixed
|
7(b25)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6523983
|
|
Submit Date
|
20-NOV-2007
|
|
Description
|
The intent of the bug fix for
6523983: (process) Raise Windows pipe buffer size (win)
was that every system had at least a 4095 least common denominator
pipe buffer size, for compatibility and performance.
A testlet was added to test/java/lang/ProcessBuilder/Basic.java
to ensure that 4095 bytes could be written between subprocesses without deadlock.
However, at least some Windows systems (Windows 2000) inexplicably
appears to need an extra 24 bytes of slop to avoid deadlock.
The size of the pipe buffer as passed to CreateProcess should be raised by 24 bytes.
Posted Date : 2007-11-20 01:33:10.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
Yes.
-#define PIPE_SIZE 4096
+// We try to make sure that we can read and write 4095 bytes (the
+// fixed limit on Linux) to the pipe on all operating systems without
+// deadlock. Windows 2000 inexplicably appears to need an extra 24
+// bytes of slop to avoid deadlock.
+#define PIPE_SIZE (4096+24)
Posted Date : 2007-11-20 01:33:10.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |