src/hotspot/os/linux/perfMemory_linux.cpp
changeset 55733 9cfb9387a9e8
parent 55457 ced62a6a7bbe
child 58084 cddef3bde924
equal deleted inserted replaced
55732:5f3df8029bfd 55733:9cfb9387a9e8
  1105                 "Could not determine PerfMemory size");
  1105                 "Could not determine PerfMemory size");
  1106   }
  1106   }
  1107 
  1107 
  1108   if ((statbuf.st_size == 0) ||
  1108   if ((statbuf.st_size == 0) ||
  1109      ((size_t)statbuf.st_size % os::vm_page_size() != 0)) {
  1109      ((size_t)statbuf.st_size % os::vm_page_size() != 0)) {
  1110     THROW_MSG_0(vmSymbols::java_lang_Exception(),
  1110     THROW_MSG_0(vmSymbols::java_io_IOException(),
  1111                 "Invalid PerfMemory size");
  1111                 "Invalid PerfMemory size");
  1112   }
  1112   }
  1113 
  1113 
  1114   return (size_t)statbuf.st_size;
  1114   return (size_t)statbuf.st_size;
  1115 }
  1115 }