Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4472183

Solaris: use of fopen() in timezone classes implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • 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

            okutsu Masayoshi Okutsu
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: