8182164: checkByteBuffer has the wrong signature
authorehelin
Fri, 14 Jul 2017 14:00:10 +0200
changeset 46667 ff7b9f61209e
parent 46666 32434b633549
child 46668 f5a564180f37
8182164: checkByteBuffer has the wrong signature Reviewed-by: ehelin, stuefe Contributed-by: glaubitz@physik.fu-berlin.de
hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp
--- a/hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp	Fri Jul 14 13:57:10 2017 +0200
+++ b/hotspot/src/os_cpu/linux_sparc/vm/os_linux_sparc.cpp	Fri Jul 14 14:00:10 2017 +0200
@@ -381,7 +381,7 @@
   return false;
 }
 
-inline static bool checkByteBuffer(address pc, address npc, address* stub) {
+inline static bool checkByteBuffer(address pc, address npc, JavaThread * thread, address* stub) {
   // BugId 4454115: A read from a MappedByteBuffer can fault
   // here if the underlying file has been truncated.
   // Do not crash the VM in such a case.
@@ -573,7 +573,7 @@
           break;
         }
 
-        if ((sig == SIGBUS) && checkByteBuffer(pc, npc, &stub)) {
+        if ((sig == SIGBUS) && checkByteBuffer(pc, npc, thread, &stub)) {
           break;
         }