< prev index next >

src/hotspot/os/linux/perfMemory_linux.cpp

Print this page

        

*** 659,669 **** FILE *fp = fopen(fname, "r"); if (fp) { int pid, nspid; int ret; ! while (!feof(fp) && !ferror(fp)) { ret = fscanf(fp, "NSpid: %d %d", &pid, &nspid); if (ret == 1) { break; } if (ret == 2) { --- 659,669 ---- FILE *fp = fopen(fname, "r"); if (fp) { int pid, nspid; int ret; ! while (!feof(fp)) { ret = fscanf(fp, "NSpid: %d %d", &pid, &nspid); if (ret == 1) { break; } if (ret == 2) {
*** 1105,1115 **** "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(), "Invalid PerfMemory size"); } return (size_t)statbuf.st_size; } --- 1105,1115 ---- "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_lang_Exception(), "Invalid PerfMemory size"); } return (size_t)statbuf.st_size; }
< prev index next >