< prev index next >

src/share/vm/runtime/java.hpp

Print this page




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_RUNTIME_JAVA_HPP
  26 #define SHARE_VM_RUNTIME_JAVA_HPP
  27 
  28 #include "runtime/os.hpp"
  29 
  30 // Register function to be called by before_exit
  31 extern "C" { void register_on_exit_function(void (*func)(void)) ;}
  32 
  33 // Execute code before all handles are released and thread is killed; prologue to vm_exit
  34 extern void before_exit(JavaThread * thread);
  35 
  36 // Forced VM exit (i.e, internal error or JVM_Exit)
  37 extern void vm_exit(int code);
  38 
  39 // Wrapper for ::exit()
  40 extern void vm_direct_exit(int code);
  41 
  42 // Shutdown the VM but do not exit the process
  43 extern void vm_shutdown();
  44 // Shutdown the VM and abort the process
  45 extern void vm_abort(bool dump_core=true);
  46 
  47 // Trigger any necessary notification of the VM being shutdown
  48 extern void notify_vm_shutdown();
  49 
  50 // VM exit if error occurs during initialization of VM
  51 extern void vm_exit_during_initialization(Handle exception);
  52 extern void vm_exit_during_initialization(Symbol* exception_name, const char* message);




  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_RUNTIME_JAVA_HPP
  26 #define SHARE_VM_RUNTIME_JAVA_HPP
  27 
  28 #include "runtime/os.hpp"
  29 



  30 // Execute code before all handles are released and thread is killed; prologue to vm_exit
  31 extern void before_exit(JavaThread * thread);
  32 
  33 // Forced VM exit (i.e, internal error or JVM_Exit)
  34 extern void vm_exit(int code);
  35 
  36 // Wrapper for ::exit()
  37 extern void vm_direct_exit(int code);
  38 
  39 // Shutdown the VM but do not exit the process
  40 extern void vm_shutdown();
  41 // Shutdown the VM and abort the process
  42 extern void vm_abort(bool dump_core=true);
  43 
  44 // Trigger any necessary notification of the VM being shutdown
  45 extern void notify_vm_shutdown();
  46 
  47 // VM exit if error occurs during initialization of VM
  48 extern void vm_exit_during_initialization(Handle exception);
  49 extern void vm_exit_during_initialization(Symbol* exception_name, const char* message);


< prev index next >