-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
None
-
beta2
-
sparc
-
solaris_7
The platform library routine fopen() can (on 32-bit Solaris at least) only
use file descriptors up to 255.
However the VM sets the files that can be opened by a JRE process
on Solaris to at least 1024.
These two limits conflict such that a Java program may open 256 files, then
perform some action which utilises fopen may needlessly fail.
The following cases should be rewritten to use open().
if ((fp = fopen(sysconfig_clock_file, "r")) != NULL) {
if ((fp = fopen(sys_init_file, "r")) != NULL) {
if ((tzmapf = fopen(mapfilename, "r")) == NULL) {
./solaris/native/java/util/TimeZone_md.c
use file descriptors up to 255.
However the VM sets the files that can be opened by a JRE process
on Solaris to at least 1024.
These two limits conflict such that a Java program may open 256 files, then
perform some action which utilises fopen may needlessly fail.
The following cases should be rewritten to use open().
if ((fp = fopen(sysconfig_clock_file, "r")) != NULL) {
if ((fp = fopen(sys_init_file, "r")) != NULL) {
if ((tzmapf = fopen(mapfilename, "r")) == NULL) {
./solaris/native/java/util/TimeZone_md.c
- relates to
-
JDK-6176079 Regression Test:java/util/TimeZone/:Bug4472183.java & WinTZVM.sh Failed
- Closed