mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8212612: Add documentation about Arguments::_exit_hook
Reviewed-by: hseigel, dlong, dholmes
This commit is contained in:
parent
d63acb557c
commit
c86ba29693
3 changed files with 19 additions and 2 deletions
|
@ -106,6 +106,9 @@ char* Arguments::SharedArchivePath = NULL;
|
||||||
AgentLibraryList Arguments::_libraryList;
|
AgentLibraryList Arguments::_libraryList;
|
||||||
AgentLibraryList Arguments::_agentList;
|
AgentLibraryList Arguments::_agentList;
|
||||||
|
|
||||||
|
// These are not set by the JDK's built-in launchers, but they can be set by
|
||||||
|
// programs that embed the JVM using JNI_CreateJavaVM. See comments around
|
||||||
|
// JavaVMOption in jni.h.
|
||||||
abort_hook_t Arguments::_abort_hook = NULL;
|
abort_hook_t Arguments::_abort_hook = NULL;
|
||||||
exit_hook_t Arguments::_exit_hook = NULL;
|
exit_hook_t Arguments::_exit_hook = NULL;
|
||||||
vfprintf_hook_t Arguments::_vfprintf_hook = NULL;
|
vfprintf_hook_t Arguments::_vfprintf_hook = NULL;
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
// Arguments parses the command line and recognizes options
|
// Arguments parses the command line and recognizes options
|
||||||
|
|
||||||
// Invocation API hook typedefs (these should really be defined in jni.hpp)
|
// Invocation API hook typedefs (these should really be defined in jni.h)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
typedef void (JNICALL *abort_hook_t)(void);
|
typedef void (JNICALL *abort_hook_t)(void);
|
||||||
typedef void (JNICALL *exit_hook_t)(jint code);
|
typedef void (JNICALL *exit_hook_t)(jint code);
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1871,6 +1871,20 @@ struct JNIEnv_ {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* optionString may be any option accepted by the JVM, or one of the
|
||||||
|
* following:
|
||||||
|
*
|
||||||
|
* -D<name>=<value> Set a system property.
|
||||||
|
* -verbose[:class|gc|jni] Enable verbose output, comma-separated. E.g.
|
||||||
|
* "-verbose:class" or "-verbose:gc,class"
|
||||||
|
* Standard names include: gc, class, and jni.
|
||||||
|
* All nonstandard (VM-specific) names must begin
|
||||||
|
* with "X".
|
||||||
|
* vfprintf extraInfo is a pointer to the vfprintf hook.
|
||||||
|
* exit extraInfo is a pointer to the exit hook.
|
||||||
|
* abort extraInfo is a pointer to the abort hook.
|
||||||
|
*/
|
||||||
typedef struct JavaVMOption {
|
typedef struct JavaVMOption {
|
||||||
char *optionString;
|
char *optionString;
|
||||||
void *extraInfo;
|
void *extraInfo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue