hotspot/src/os/posix/vm/os_posix.cpp
changeset 31963 641ed52732ec
parent 31610 b05ea6f92971
child 31991 a7dd5bba0fd8
equal deleted inserted replaced
31856:614d6786ba55 31963:641ed52732ec
   234   st->print("%s ", name.version);
   234   st->print("%s ", name.version);
   235   st->print("%s", name.machine);
   235   st->print("%s", name.machine);
   236   st->cr();
   236   st->cr();
   237 }
   237 }
   238 
   238 
       
   239 #ifndef PRODUCT
       
   240 bool os::get_host_name(char* buf, size_t buflen) {
       
   241   struct utsname name;
       
   242   uname(&name);
       
   243   jio_snprintf(buf, buflen, "%s", name.nodename);
       
   244   return true;
       
   245 }
       
   246 #endif // PRODUCT
       
   247 
   239 bool os::has_allocatable_memory_limit(julong* limit) {
   248 bool os::has_allocatable_memory_limit(julong* limit) {
   240   struct rlimit rlim;
   249   struct rlimit rlim;
   241   int getrlimit_res = getrlimit(RLIMIT_AS, &rlim);
   250   int getrlimit_res = getrlimit(RLIMIT_AS, &rlim);
   242   // if there was an error when calling getrlimit, assume that there is no limitation
   251   // if there was an error when calling getrlimit, assume that there is no limitation
   243   // on virtual memory.
   252   // on virtual memory.