equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
154 JNIEXPORT void JNICALL |
154 JNIEXPORT void JNICALL |
155 JLI_ReportExceptionDescription(JNIEnv * env); |
155 JLI_ReportExceptionDescription(JNIEnv * env); |
156 void PrintMachineDependentOptions(); |
156 void PrintMachineDependentOptions(); |
157 |
157 |
158 /* |
158 /* |
159 * Block current thread and continue execution in new thread |
159 * Block current thread and continue execution in new thread. |
160 */ |
160 */ |
161 int ContinueInNewThread0(int (JNICALL *continuation)(void *), |
161 int CallJavaMainInNewThread(jlong stack_size, void* args); |
162 jlong stack_size, void * args); |
|
163 |
162 |
164 /* sun.java.launcher.* platform properties. */ |
163 /* sun.java.launcher.* platform properties. */ |
165 void SetJavaLauncherPlatformProps(void); |
164 void SetJavaLauncherPlatformProps(void); |
166 void SetJavaCommandLineProp(char* what, int argc, char** argv); |
165 void SetJavaCommandLineProp(char* what, int argc, char** argv); |
167 void SetJavaLauncherProp(void); |
166 void SetJavaLauncherProp(void); |
222 |
221 |
223 jobjectArray CreateApplicationArgs(JNIEnv *env, char **strv, int argc); |
222 jobjectArray CreateApplicationArgs(JNIEnv *env, char **strv, int argc); |
224 jobjectArray NewPlatformStringArray(JNIEnv *env, char **strv, int strc); |
223 jobjectArray NewPlatformStringArray(JNIEnv *env, char **strv, int strc); |
225 jclass GetLauncherHelperClass(JNIEnv *env); |
224 jclass GetLauncherHelperClass(JNIEnv *env); |
226 |
225 |
227 int JNICALL JavaMain(void * args); /* entry point */ |
226 /* |
|
227 * Entry point. |
|
228 */ |
|
229 int JavaMain(void* args); |
228 |
230 |
229 enum LaunchMode { // cf. sun.launcher.LauncherHelper |
231 enum LaunchMode { // cf. sun.launcher.LauncherHelper |
230 LM_UNKNOWN = 0, |
232 LM_UNKNOWN = 0, |
231 LM_CLASS, |
233 LM_CLASS, |
232 LM_JAR, |
234 LM_JAR, |