hotspot/src/os/aix/vm/os_aix.cpp
changeset 37430 fd743dadef12
parent 37113 5a33bf5089ac
child 38078 504a47bbbe5d
equal deleted inserted replaced
37428:6e724f3d488b 37430:fd743dadef12
  3610     // Set the number of file descriptors to max. print out error
  3610     // Set the number of file descriptors to max. print out error
  3611     // if getrlimit/setrlimit fails but continue regardless.
  3611     // if getrlimit/setrlimit fails but continue regardless.
  3612     struct rlimit nbr_files;
  3612     struct rlimit nbr_files;
  3613     int status = getrlimit(RLIMIT_NOFILE, &nbr_files);
  3613     int status = getrlimit(RLIMIT_NOFILE, &nbr_files);
  3614     if (status != 0) {
  3614     if (status != 0) {
  3615       if (PrintMiscellaneous && (Verbose || WizardMode))
  3615       log_info(os)("os::init_2 getrlimit failed: %s", os::strerror(errno));
  3616         perror("os::init_2 getrlimit failed");
       
  3617     } else {
  3616     } else {
  3618       nbr_files.rlim_cur = nbr_files.rlim_max;
  3617       nbr_files.rlim_cur = nbr_files.rlim_max;
  3619       status = setrlimit(RLIMIT_NOFILE, &nbr_files);
  3618       status = setrlimit(RLIMIT_NOFILE, &nbr_files);
  3620       if (status != 0) {
  3619       if (status != 0) {
  3621         if (PrintMiscellaneous && (Verbose || WizardMode))
  3620         log_info(os)("os::init_2 setrlimit failed: %s", os::strerror(errno));
  3622           perror("os::init_2 setrlimit failed");
       
  3623       }
  3621       }
  3624     }
  3622     }
  3625   }
  3623   }
  3626 
  3624 
  3627   if (PerfAllowAtExitRegistration) {
  3625   if (PerfAllowAtExitRegistration) {