diff --git a/src/hotspot/os/aix/perfMemory_aix.cpp b/src/hotspot/os/aix/perfMemory_aix.cpp index 7c18274960d..28f9185c89a 100644 --- a/src/hotspot/os/aix/perfMemory_aix.cpp +++ b/src/hotspot/os/aix/perfMemory_aix.cpp @@ -1111,7 +1111,7 @@ static size_t sharedmem_filesize(int fd, TRAPS) { if ((statbuf.st_size == 0) || ((size_t)statbuf.st_size % os::vm_page_size() != 0)) { - THROW_MSG_0(vmSymbols::java_lang_Exception(), + THROW_MSG_0(vmSymbols::java_io_IOException(), "Invalid PerfMemory size"); } diff --git a/src/hotspot/os/bsd/perfMemory_bsd.cpp b/src/hotspot/os/bsd/perfMemory_bsd.cpp index 4f5c417685f..18da95590e7 100644 --- a/src/hotspot/os/bsd/perfMemory_bsd.cpp +++ b/src/hotspot/os/bsd/perfMemory_bsd.cpp @@ -1028,7 +1028,7 @@ static size_t sharedmem_filesize(int fd, TRAPS) { if ((statbuf.st_size == 0) || ((size_t)statbuf.st_size % os::vm_page_size() != 0)) { - THROW_MSG_0(vmSymbols::java_lang_Exception(), + THROW_MSG_0(vmSymbols::java_io_IOException(), "Invalid PerfMemory size"); } diff --git a/src/hotspot/os/linux/perfMemory_linux.cpp b/src/hotspot/os/linux/perfMemory_linux.cpp index 69545e2f30e..bdb9ac27050 100644 --- a/src/hotspot/os/linux/perfMemory_linux.cpp +++ b/src/hotspot/os/linux/perfMemory_linux.cpp @@ -1107,7 +1107,7 @@ static size_t sharedmem_filesize(int fd, TRAPS) { if ((statbuf.st_size == 0) || ((size_t)statbuf.st_size % os::vm_page_size() != 0)) { - THROW_MSG_0(vmSymbols::java_lang_Exception(), + THROW_MSG_0(vmSymbols::java_io_IOException(), "Invalid PerfMemory size"); } diff --git a/src/hotspot/os/solaris/perfMemory_solaris.cpp b/src/hotspot/os/solaris/perfMemory_solaris.cpp index d2436cdd099..570ffbf5c30 100644 --- a/src/hotspot/os/solaris/perfMemory_solaris.cpp +++ b/src/hotspot/os/solaris/perfMemory_solaris.cpp @@ -1055,7 +1055,7 @@ static size_t sharedmem_filesize(int fd, TRAPS) { if ((statbuf.st_size == 0) || ((size_t)statbuf.st_size % os::vm_page_size() != 0)) { - THROW_MSG_0(vmSymbols::java_lang_Exception(), + THROW_MSG_0(vmSymbols::java_io_IOException(), "Invalid PerfMemory size"); } diff --git a/src/hotspot/os/windows/perfMemory_windows.cpp b/src/hotspot/os/windows/perfMemory_windows.cpp index 0e68ce5282e..851b667ac6e 100644 --- a/src/hotspot/os/windows/perfMemory_windows.cpp +++ b/src/hotspot/os/windows/perfMemory_windows.cpp @@ -1561,7 +1561,7 @@ static size_t sharedmem_filesize(const char* filename, TRAPS) { warning("unexpected file size: size = " SIZE_FORMAT "\n", statbuf.st_size); } - THROW_MSG_0(vmSymbols::java_lang_Exception(), + THROW_MSG_0(vmSymbols::java_io_IOException(), "Invalid PerfMemory size"); }