8182164: checkByteBuffer has the wrong signature

Reviewed-by: ehelin, stuefe
This commit is contained in:
John Paul Adrian Glaubitz 2017-07-14 14:00:10 +02:00 committed by Erik Helin
parent 298e379cb7
commit bc1be30b50

View File

@ -381,7 +381,7 @@ inline static bool checkPollingPage(address pc, address fault, address* stub) {
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 @@ JVM_handle_linux_signal(int sig,
break;
}
if ((sig == SIGBUS) && checkByteBuffer(pc, npc, &stub)) {
if ((sig == SIGBUS) && checkByteBuffer(pc, npc, thread, &stub)) {
break;
}