--- a/hotspot/src/os/bsd/vm/os_bsd.cpp Thu Dec 10 14:22:00 2015 +0100
+++ b/hotspot/src/os/bsd/vm/os_bsd.cpp Mon Dec 14 02:29:11 2015 -0500
@@ -1077,7 +1077,7 @@
// Note: os::abort() might be called very early during initialization, or
// called from signal handler. Before adding something to os::abort(), make
// sure it is async-safe and can handle partially initialized VM.
-void os::abort(bool dump_core, void* siginfo, void* context) {
+void os::abort(bool dump_core, void* siginfo, const void* context) {
os::shutdown();
if (dump_core) {
#ifndef PRODUCT
@@ -3643,7 +3643,7 @@
Thread* thread = context.thread();
OSThread* osthread = thread->osthread();
if (osthread->ucontext() != NULL) {
- _epc = os::Bsd::ucontext_get_pc((ucontext_t *) context.ucontext());
+ _epc = os::Bsd::ucontext_get_pc((const ucontext_t *) context.ucontext());
} else {
// NULL context is unexpected, double-check this is the VMThread
guarantee(thread->is_VM_thread(), "can only be called for VMThread");