src/hotspot/os/bsd/perfMemory_bsd.cpp
changeset 55733 9cfb9387a9e8
parent 51106 f605c91e5219
child 58084 cddef3bde924
equal deleted inserted replaced
55732:5f3df8029bfd 55733:9cfb9387a9e8
  1026                 "Could not determine PerfMemory size");
  1026                 "Could not determine PerfMemory size");
  1027   }
  1027   }
  1028 
  1028 
  1029   if ((statbuf.st_size == 0) ||
  1029   if ((statbuf.st_size == 0) ||
  1030      ((size_t)statbuf.st_size % os::vm_page_size() != 0)) {
  1030      ((size_t)statbuf.st_size % os::vm_page_size() != 0)) {
  1031     THROW_MSG_0(vmSymbols::java_lang_Exception(),
  1031     THROW_MSG_0(vmSymbols::java_io_IOException(),
  1032                 "Invalid PerfMemory size");
  1032                 "Invalid PerfMemory size");
  1033   }
  1033   }
  1034 
  1034 
  1035   return (size_t)statbuf.st_size;
  1035   return (size_t)statbuf.st_size;
  1036 }
  1036 }