hotspot/src/os/bsd/vm/os_bsd.cpp
changeset 35077 8b86440d3bf1
parent 35071 a0910b1d3e0d
child 35176 11a9d4022d9e
--- 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");