< prev index next >

src/hotspot/os/aix/os_aix.hpp

Print this page


   1 /*
   2  * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2013, 2016 SAP SE. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.


 104     return _page_size;
 105   }
 106 
 107   static address   ucontext_get_pc(const ucontext_t* uc);
 108   static intptr_t* ucontext_get_sp(const ucontext_t* uc);
 109   static intptr_t* ucontext_get_fp(const ucontext_t* uc);
 110   // Set PC into context. Needed for continuation after signal.
 111   static void ucontext_set_pc(ucontext_t* uc, address pc);
 112 
 113   static bool get_frame_at_stack_banging_point(JavaThread* thread, ucontext_t* uc, frame* fr);
 114 
 115   // This boolean allows users to forward their own non-matching signals
 116   // to JVM_handle_aix_signal, harmlessly.
 117   static bool signal_handlers_are_installed;
 118 
 119   static int get_our_sigflags(int);
 120   static void set_our_sigflags(int, int);
 121   static void signal_sets_init();
 122   static void install_signal_handlers();
 123   static void set_signal_handler(int, bool);
 124   static bool is_sig_ignored(int sig);
 125 
 126   static sigset_t* unblocked_signals();
 127   static sigset_t* vm_signals();
 128 
 129   // For signal-chaining
 130   static struct sigaction *get_chained_signal_action(int sig);
 131   static bool chained_handler(int sig, siginfo_t* siginfo, void* context);
 132 
 133   // libpthread version string
 134   static void libpthread_init();
 135 
 136   // Function returns true if we run on OS/400 (pase), false if we run
 137   // on AIX.
 138   static bool on_pase() {
 139     assert(_on_pase != -1, "not initialized");
 140     return _on_pase ? true : false;
 141   }
 142 
 143   // Function returns true if we run on AIX, false if we run on OS/400
 144   // (pase).


   1 /*
   2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * Copyright (c) 2013, 2016 SAP SE. All rights reserved.
   4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5  *
   6  * This code is free software; you can redistribute it and/or modify it
   7  * under the terms of the GNU General Public License version 2 only, as
   8  * published by the Free Software Foundation.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.


 104     return _page_size;
 105   }
 106 
 107   static address   ucontext_get_pc(const ucontext_t* uc);
 108   static intptr_t* ucontext_get_sp(const ucontext_t* uc);
 109   static intptr_t* ucontext_get_fp(const ucontext_t* uc);
 110   // Set PC into context. Needed for continuation after signal.
 111   static void ucontext_set_pc(ucontext_t* uc, address pc);
 112 
 113   static bool get_frame_at_stack_banging_point(JavaThread* thread, ucontext_t* uc, frame* fr);
 114 
 115   // This boolean allows users to forward their own non-matching signals
 116   // to JVM_handle_aix_signal, harmlessly.
 117   static bool signal_handlers_are_installed;
 118 
 119   static int get_our_sigflags(int);
 120   static void set_our_sigflags(int, int);
 121   static void signal_sets_init();
 122   static void install_signal_handlers();
 123   static void set_signal_handler(int, bool);

 124 
 125   static sigset_t* unblocked_signals();
 126   static sigset_t* vm_signals();
 127 
 128   // For signal-chaining
 129   static struct sigaction *get_chained_signal_action(int sig);
 130   static bool chained_handler(int sig, siginfo_t* siginfo, void* context);
 131 
 132   // libpthread version string
 133   static void libpthread_init();
 134 
 135   // Function returns true if we run on OS/400 (pase), false if we run
 136   // on AIX.
 137   static bool on_pase() {
 138     assert(_on_pase != -1, "not initialized");
 139     return _on_pase ? true : false;
 140   }
 141 
 142   // Function returns true if we run on AIX, false if we run on OS/400
 143   // (pase).


< prev index next >