< prev index next >

src/hotspot/os/linux/perfMemory_linux.cpp

Print this page

        

@@ -659,11 +659,11 @@
   FILE *fp = fopen(fname, "r");
 
   if (fp) {
     int pid, nspid;
     int ret;
-    while (!feof(fp) && !ferror(fp)) {
+    while (!feof(fp)) {
       ret = fscanf(fp, "NSpid: %d %d", &pid, &nspid);
       if (ret == 1) {
         break;
       }
       if (ret == 2) {

@@ -1105,11 +1105,11 @@
                 "Could not determine PerfMemory size");
   }
 
   if ((statbuf.st_size == 0) ||
      ((size_t)statbuf.st_size % os::vm_page_size() != 0)) {
-    THROW_MSG_0(vmSymbols::java_io_IOException(),
+    THROW_MSG_0(vmSymbols::java_lang_Exception(),
                 "Invalid PerfMemory size");
   }
 
   return (size_t)statbuf.st_size;
 }
< prev index next >