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

Solaris: use of fopen() in timezone classes implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      sparc
    • OS:
      solaris_7

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: