hotspot/src/os/linux/vm/os_linux.cpp
changeset 35077 8b86440d3bf1
parent 35075 ca79cbf3f106
child 35176 11a9d4022d9e
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Thu Dec 10 14:22:00 2015 +0100
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Mon Dec 14 02:29:11 2015 -0500
@@ -1341,7 +1341,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
@@ -4853,7 +4853,7 @@
   Thread* thread = context.thread();
   OSThread* osthread = thread->osthread();
   if (osthread->ucontext() != NULL) {
-    _epc = os::Linux::ucontext_get_pc((ucontext_t *) context.ucontext());
+    _epc = os::Linux::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");