changeset 55733:9cfb9387a9e8

8227435: Perf::attach() should not throw a java.lang.Exception Reviewed-by: sspitsyn, clanger, dholmes
author rschmelter
date Thu, 18 Jul 2019 10:25:49 +0200
parents 5f3df8029bfd
children 51f5b4c29626
files src/hotspot/os/aix/perfMemory_aix.cpp src/hotspot/os/bsd/perfMemory_bsd.cpp src/hotspot/os/linux/perfMemory_linux.cpp src/hotspot/os/solaris/perfMemory_solaris.cpp src/hotspot/os/windows/perfMemory_windows.cpp
diffstat 5 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/os/aix/perfMemory_aix.cpp	Wed Jul 17 09:58:42 2019 +0200
+++ b/src/hotspot/os/aix/perfMemory_aix.cpp	Thu Jul 18 10:25:49 2019 +0200
@@ -1111,7 +1111,7 @@
 
   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");
   }
 
--- a/src/hotspot/os/bsd/perfMemory_bsd.cpp	Wed Jul 17 09:58:42 2019 +0200
+++ b/src/hotspot/os/bsd/perfMemory_bsd.cpp	Thu Jul 18 10:25:49 2019 +0200
@@ -1028,7 +1028,7 @@
 
   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");
   }
 
--- a/src/hotspot/os/linux/perfMemory_linux.cpp	Wed Jul 17 09:58:42 2019 +0200
+++ b/src/hotspot/os/linux/perfMemory_linux.cpp	Thu Jul 18 10:25:49 2019 +0200
@@ -1107,7 +1107,7 @@
 
   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");
   }
 
--- a/src/hotspot/os/solaris/perfMemory_solaris.cpp	Wed Jul 17 09:58:42 2019 +0200
+++ b/src/hotspot/os/solaris/perfMemory_solaris.cpp	Thu Jul 18 10:25:49 2019 +0200
@@ -1055,7 +1055,7 @@
 
   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");
   }
 
--- a/src/hotspot/os/windows/perfMemory_windows.cpp	Wed Jul 17 09:58:42 2019 +0200
+++ b/src/hotspot/os/windows/perfMemory_windows.cpp	Thu Jul 18 10:25:49 2019 +0200
@@ -1561,7 +1561,7 @@
       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");
   }