author | erikj |
Tue, 12 Sep 2017 19:03:39 +0200 | |
changeset 47216 | 71c04702a3d5 |
parent 43691 | jdk/src/java.base/share/native/libjli/java.h@f3c0d65c7b17 |
child 49440 | 396ea30afbd5 |
child 56106 | 40e61db323c2 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
37359
4a3768da1851
8154212: launcher SEGV when _JAVA_LAUNCHER_DEBUG is set
ksrini
parents:
36511
diff
changeset
|
2 |
* Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
#ifndef _JAVA_H_ |
|
27 |
#define _JAVA_H_ |
|
28 |
||
29 |
#include <stdio.h> |
|
30 |
#include <stdlib.h> |
|
31 |
#include <string.h> |
|
32 |
#include <limits.h> |
|
33 |
||
34 |
#include <jni.h> |
|
35 |
#include <jvm.h> |
|
36 |
||
37 |
/* |
|
38 |
* Get system specific defines. |
|
39 |
*/ |
|
40 |
#include "emessages.h" |
|
41 |
#include "java_md.h" |
|
42 |
#include "jli_util.h" |
|
43 |
#include "manifest_info.h" |
|
44 |
#include "wildcard.h" |
|
45 |
#include "splashscreen.h" |
|
46 |
||
47 |
# define KB (1024UL) |
|
48 |
# define MB (1024UL * KB) |
|
49 |
# define GB (1024UL * MB) |
|
50 |
||
51 |
#define CURRENT_DATA_MODEL (CHAR_BIT * sizeof(void*)) |
|
52 |
||
53 |
/* |
|
54 |
* The following environment variable is used to influence the behavior |
|
55 |
* of the jre exec'd through the SelectVersion routine. The command line |
|
56 |
* options which specify the version are not passed to the exec'd version, |
|
57 |
* because that jre may be an older version which wouldn't recognize them. |
|
58 |
* This environment variable is known to this (and later) version and serves |
|
59 |
* to suppress the version selection code. This is not only for efficiency, |
|
60 |
* but also for correctness, since any command line options have been |
|
61 |
* removed which would cause any value found in the manifest to be used. |
|
62 |
* This would be incorrect because the command line options are defined |
|
63 |
* to take precedence. |
|
64 |
* |
|
65 |
* The value associated with this environment variable is the MainClass |
|
66 |
* name from within the executable jar file (if any). This is strictly a |
|
67 |
* performance enhancement to avoid re-reading the jar file manifest. |
|
68 |
* |
|
69 |
*/ |
|
70 |
#define ENV_ENTRY "_JAVA_VERSION_SET" |
|
71 |
||
72 |
#define SPLASH_FILE_ENV_ENTRY "_JAVA_SPLASH_FILE" |
|
73 |
#define SPLASH_JAR_ENV_ENTRY "_JAVA_SPLASH_JAR" |
|
43691
f3c0d65c7b17
8173712: Rename JAVA_OPTIONS environment variable to JDK_JAVA_OPTIONS
mchung
parents:
43325
diff
changeset
|
74 |
#define JDK_JAVA_OPTIONS "JDK_JAVA_OPTIONS" |
2 | 75 |
|
76 |
/* |
|
77 |
* Pointers to the needed JNI invocation API, initialized by LoadJavaVM. |
|
78 |
*/ |
|
79 |
typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args); |
|
80 |
typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args); |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
81 |
typedef jint (JNICALL *GetCreatedJavaVMs_t)(JavaVM **vmBuf, jsize bufLen, jsize *nVMs); |
2 | 82 |
|
83 |
typedef struct { |
|
84 |
CreateJavaVM_t CreateJavaVM; |
|
85 |
GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs; |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
86 |
GetCreatedJavaVMs_t GetCreatedJavaVMs; |
2 | 87 |
} InvocationFunctions; |
88 |
||
89 |
int |
|
90 |
JLI_Launch(int argc, char ** argv, /* main argc, argc */ |
|
91 |
int jargc, const char** jargv, /* java args */ |
|
92 |
int appclassc, const char** appclassv, /* app classpath */ |
|
93 |
const char* fullversion, /* full version defined */ |
|
94 |
const char* dotversion, /* dot version defined */ |
|
95 |
const char* pname, /* program name */ |
|
96 |
const char* lname, /* launcher name */ |
|
97 |
jboolean javaargs, /* JAVA_ARGS */ |
|
98 |
jboolean cpwildcard, /* classpath wildcard */ |
|
99 |
jboolean javaw, /* windows-only javaw */ |
|
100 |
jint ergo_class /* ergnomics policy */ |
|
101 |
); |
|
102 |
||
103 |
/* |
|
104 |
* Prototypes for launcher functions in the system specific java_md.c. |
|
105 |
*/ |
|
106 |
||
107 |
jboolean |
|
108 |
LoadJavaVM(const char *jvmpath, InvocationFunctions *ifn); |
|
109 |
||
110 |
void |
|
111 |
GetXUsagePath(char *buf, jint bufsize); |
|
112 |
||
113 |
jboolean |
|
114 |
GetApplicationHome(char *buf, jint bufsize); |
|
115 |
||
40945
f241705723ea
8165524: Better detect JRE that Linux JLI will be using
ksrini
parents:
40695
diff
changeset
|
116 |
jboolean |
f241705723ea
8165524: Better detect JRE that Linux JLI will be using
ksrini
parents:
40695
diff
changeset
|
117 |
GetApplicationHomeFromDll(char *buf, jint bufsize); |
f241705723ea
8165524: Better detect JRE that Linux JLI will be using
ksrini
parents:
40695
diff
changeset
|
118 |
|
2 | 119 |
#define GetArch() GetArchPath(CURRENT_DATA_MODEL) |
120 |
||
6005 | 121 |
/* |
122 |
* Different platforms will implement this, here |
|
123 |
* pargc is a pointer to the original argc, |
|
124 |
* pargv is a pointer to the original argv, |
|
125 |
* jrepath is an accessible path to the jre as determined by the call |
|
126 |
* so_jrepath is the length of the buffer jrepath |
|
127 |
* jvmpath is an accessible path to the jvm as determined by the call |
|
128 |
* so_jvmpath is the length of the buffer jvmpath |
|
129 |
*/ |
|
130 |
void CreateExecutionEnvironment(int *argc, char ***argv, |
|
131 |
char *jrepath, jint so_jrepath, |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
132 |
char *jvmpath, jint so_jvmpath, |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
133 |
char *jvmcfg, jint so_jvmcfg); |
6005 | 134 |
|
1145
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
135 |
/* Reports an error message to stderr or a window as appropriate. */ |
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
136 |
void JLI_ReportErrorMessage(const char * message, ...); |
2 | 137 |
|
1145
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
138 |
/* Reports a system error message to stderr or a window */ |
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
139 |
void JLI_ReportErrorMessageSys(const char * message, ...); |
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
140 |
|
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
141 |
/* Reports an error message only to stderr. */ |
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
142 |
void JLI_ReportMessage(const char * message, ...); |
2 | 143 |
|
42338
a60f280f803c
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41966
diff
changeset
|
144 |
/* Reports a message only to stdout. */ |
a60f280f803c
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41966
diff
changeset
|
145 |
void JLI_ShowMessage(const char * message, ...); |
a60f280f803c
8169069: Module system implementation refresh (11/2016)
alanb
parents:
41966
diff
changeset
|
146 |
|
2 | 147 |
/* |
1145
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
148 |
* Reports an exception which terminates the vm to stderr or a window |
2 | 149 |
* as appropriate. |
150 |
*/ |
|
1145
404b11752c57
6685121: (launcher) make ReportErrorMessages accessible by other launcher subsystems
ksrini
parents:
715
diff
changeset
|
151 |
void JLI_ReportExceptionDescription(JNIEnv * env); |
2 | 152 |
void PrintMachineDependentOptions(); |
153 |
||
154 |
/* |
|
155 |
* Block current thread and continue execution in new thread |
|
156 |
*/ |
|
157 |
int ContinueInNewThread0(int (JNICALL *continuation)(void *), |
|
158 |
jlong stack_size, void * args); |
|
159 |
||
160 |
/* sun.java.launcher.* platform properties. */ |
|
161 |
void SetJavaLauncherPlatformProps(void); |
|
7997
78536cac0841
6912013: Remove the temporary launcher fix to add modules in the bootclasspath
mchung
parents:
6005
diff
changeset
|
162 |
void SetJavaCommandLineProp(char* what, int argc, char** argv); |
2 | 163 |
void SetJavaLauncherProp(void); |
164 |
||
165 |
/* |
|
166 |
* Functions defined in java.c and used in java_md.c. |
|
167 |
*/ |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
168 |
jint ReadKnownVMs(const char *jvmcfg, jboolean speculative); |
2 | 169 |
char *CheckJvmType(int *argc, char ***argv, jboolean speculative); |
170 |
void AddOption(char *str, void *info); |
|
40261
86a49ba76f52
8136930: Simplify use of module-system options by custom launchers
mchung
parents:
37359
diff
changeset
|
171 |
jboolean IsWhiteSpaceOption(const char* name); |
2 | 172 |
|
43325
033e4cced1dc
8170832: Add a new launcher environment variable JAVA_OPTIONS
henryjen
parents:
42338
diff
changeset
|
173 |
// Utility function defined in args.c |
033e4cced1dc
8170832: Add a new launcher environment variable JAVA_OPTIONS
henryjen
parents:
42338
diff
changeset
|
174 |
int isTerminalOpt(char *arg); |
033e4cced1dc
8170832: Add a new launcher environment variable JAVA_OPTIONS
henryjen
parents:
42338
diff
changeset
|
175 |
|
2 | 176 |
const char* GetProgramName(); |
177 |
const char* GetFullVersion(); |
|
178 |
jboolean IsJavaArgs(); |
|
179 |
jboolean IsJavaw(); |
|
180 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
181 |
int ContinueInNewThread(InvocationFunctions* ifn, jlong threadStackSize, |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
182 |
int argc, char** argv, |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
183 |
int mode, char *what, int ret); |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
184 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
185 |
int JVMInit(InvocationFunctions* ifn, jlong threadStackSize, |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
186 |
int argc, char** argv, |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
187 |
int mode, char *what, int ret); |
2 | 188 |
|
39
560da37936db
6596475: (launcher) javaw should call InitCommonControls
ksrini
parents:
2
diff
changeset
|
189 |
/* |
560da37936db
6596475: (launcher) javaw should call InitCommonControls
ksrini
parents:
2
diff
changeset
|
190 |
* Initialize platform specific settings |
560da37936db
6596475: (launcher) javaw should call InitCommonControls
ksrini
parents:
2
diff
changeset
|
191 |
*/ |
560da37936db
6596475: (launcher) javaw should call InitCommonControls
ksrini
parents:
2
diff
changeset
|
192 |
void InitLauncher(jboolean javaw); |
2 | 193 |
|
1323
e14a3b3536cd
6742159: (launcher) improve the java launching mechanism
ksrini
parents:
1145
diff
changeset
|
194 |
/* |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
195 |
* For MacOSX and Windows/Unix compatibility we require these |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
196 |
* entry points, some of them may be stubbed out on Windows/Unixes. |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
197 |
*/ |
30467
075f4f160f19
8076264: [macosx] Launching app on MacOSX requires enclosing class
serb
parents:
29742
diff
changeset
|
198 |
void PostJVMInit(JNIEnv *env, jclass mainClass, JavaVM *vm); |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
199 |
void ShowSplashScreen(); |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
200 |
void RegisterThread(); |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
201 |
/* |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
202 |
* this method performs additional platform specific processing and |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
203 |
* should return JNI_TRUE to indicate the argument has been consumed, |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
204 |
* otherwise returns JNI_FALSE to allow the calling logic to further |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
205 |
* process the option. |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
206 |
*/ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
207 |
jboolean ProcessPlatformOption(const char *arg); |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
208 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
209 |
/* |
1323
e14a3b3536cd
6742159: (launcher) improve the java launching mechanism
ksrini
parents:
1145
diff
changeset
|
210 |
* This allows for finding classes from the VM's bootstrap class loader directly, |
e14a3b3536cd
6742159: (launcher) improve the java launching mechanism
ksrini
parents:
1145
diff
changeset
|
211 |
* FindClass uses the application class loader internally, this will cause |
e14a3b3536cd
6742159: (launcher) improve the java launching mechanism
ksrini
parents:
1145
diff
changeset
|
212 |
* unnecessary searching of the classpath for the required classes. |
e14a3b3536cd
6742159: (launcher) improve the java launching mechanism
ksrini
parents:
1145
diff
changeset
|
213 |
* |
e14a3b3536cd
6742159: (launcher) improve the java launching mechanism
ksrini
parents:
1145
diff
changeset
|
214 |
*/ |
e14a3b3536cd
6742159: (launcher) improve the java launching mechanism
ksrini
parents:
1145
diff
changeset
|
215 |
typedef jclass (JNICALL FindClassFromBootLoader_t(JNIEnv *env, |
3834
16342ebd576d
6864028: Update the java launcher to use the new entry point JVM_FindClassFromBootLoader
mchung
parents:
1331
diff
changeset
|
216 |
const char *name)); |
1323
e14a3b3536cd
6742159: (launcher) improve the java launching mechanism
ksrini
parents:
1145
diff
changeset
|
217 |
jclass FindBootStrapClass(JNIEnv *env, const char *classname); |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
218 |
|
13411
224a28370893
7146424: Wildcard expansion for single entry classpath
ksrini
parents:
12047
diff
changeset
|
219 |
jobjectArray CreateApplicationArgs(JNIEnv *env, char **strv, int argc); |
224a28370893
7146424: Wildcard expansion for single entry classpath
ksrini
parents:
12047
diff
changeset
|
220 |
jobjectArray NewPlatformStringArray(JNIEnv *env, char **strv, int strc); |
224a28370893
7146424: Wildcard expansion for single entry classpath
ksrini
parents:
12047
diff
changeset
|
221 |
jclass GetLauncherHelperClass(JNIEnv *env); |
224a28370893
7146424: Wildcard expansion for single entry classpath
ksrini
parents:
12047
diff
changeset
|
222 |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
223 |
int JNICALL JavaMain(void * args); /* entry point */ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
224 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
225 |
enum LaunchMode { // cf. sun.launcher.LauncherHelper |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
226 |
LM_UNKNOWN = 0, |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
227 |
LM_CLASS, |
36511 | 228 |
LM_JAR, |
229 |
LM_MODULE |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
230 |
}; |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
231 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
232 |
static const char *launchModeNames[] |
37359
4a3768da1851
8154212: launcher SEGV when _JAVA_LAUNCHER_DEBUG is set
ksrini
parents:
36511
diff
changeset
|
233 |
= { "Unknown", "Main class", "JAR file", "Module" }; |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
234 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
235 |
typedef struct { |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
236 |
int argc; |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
237 |
char **argv; |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
238 |
int mode; |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
239 |
char *what; |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
240 |
InvocationFunctions ifn; |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
241 |
} JavaMainArgs; |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
242 |
|
17445 | 243 |
#define NULL_CHECK_RETURN_VALUE(NCRV_check_pointer, NCRV_return_value) \ |
244 |
do { \ |
|
245 |
if ((NCRV_check_pointer) == NULL) { \ |
|
246 |
JLI_ReportErrorMessage(JNI_ERROR); \ |
|
247 |
return NCRV_return_value; \ |
|
248 |
} \ |
|
249 |
} while (JNI_FALSE) |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
250 |
|
17445 | 251 |
#define NULL_CHECK0(NC0_check_pointer) \ |
252 |
NULL_CHECK_RETURN_VALUE(NC0_check_pointer, 0) |
|
253 |
||
254 |
#define NULL_CHECK(NC_check_pointer) \ |
|
255 |
NULL_CHECK_RETURN_VALUE(NC_check_pointer, ) |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
256 |
|
40695
7996b10bce66
8081388: JNI exception pending in jdk/src/windows/bin/java_md.c
henryjen
parents:
40261
diff
changeset
|
257 |
#define CHECK_EXCEPTION_RETURN_VALUE(CER_value) \ |
7996b10bce66
8081388: JNI exception pending in jdk/src/windows/bin/java_md.c
henryjen
parents:
40261
diff
changeset
|
258 |
do { \ |
7996b10bce66
8081388: JNI exception pending in jdk/src/windows/bin/java_md.c
henryjen
parents:
40261
diff
changeset
|
259 |
if ((*env)->ExceptionOccurred(env)) { \ |
7996b10bce66
8081388: JNI exception pending in jdk/src/windows/bin/java_md.c
henryjen
parents:
40261
diff
changeset
|
260 |
return CER_value; \ |
7996b10bce66
8081388: JNI exception pending in jdk/src/windows/bin/java_md.c
henryjen
parents:
40261
diff
changeset
|
261 |
} \ |
7996b10bce66
8081388: JNI exception pending in jdk/src/windows/bin/java_md.c
henryjen
parents:
40261
diff
changeset
|
262 |
} while (JNI_FALSE) |
7996b10bce66
8081388: JNI exception pending in jdk/src/windows/bin/java_md.c
henryjen
parents:
40261
diff
changeset
|
263 |
|
28771
2885fb2e1002
8068033: JNI exception pending in jdk/src/share/bin/java.c
ksrini
parents:
27938
diff
changeset
|
264 |
#define CHECK_EXCEPTION_RETURN() \ |
2885fb2e1002
8068033: JNI exception pending in jdk/src/share/bin/java.c
ksrini
parents:
27938
diff
changeset
|
265 |
do { \ |
2885fb2e1002
8068033: JNI exception pending in jdk/src/share/bin/java.c
ksrini
parents:
27938
diff
changeset
|
266 |
if ((*env)->ExceptionOccurred(env)) { \ |
2885fb2e1002
8068033: JNI exception pending in jdk/src/share/bin/java.c
ksrini
parents:
27938
diff
changeset
|
267 |
return; \ |
2885fb2e1002
8068033: JNI exception pending in jdk/src/share/bin/java.c
ksrini
parents:
27938
diff
changeset
|
268 |
} \ |
2885fb2e1002
8068033: JNI exception pending in jdk/src/share/bin/java.c
ksrini
parents:
27938
diff
changeset
|
269 |
} while (JNI_FALSE) |
2885fb2e1002
8068033: JNI exception pending in jdk/src/share/bin/java.c
ksrini
parents:
27938
diff
changeset
|
270 |
|
2 | 271 |
#endif /* _JAVA_H_ */ |