1 /*
2 * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved.
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 /*
26 * Gamma (Hotspot internal engineering test) launcher based on 1.6.0-b28 JDK,
27 * search "GAMMA" for gamma specific changes.
28 */
29
30 #ifndef _JAVA_H_
31 #define _JAVA_H_
32
33 /*
34 * Get system specific defines.
35 */
36 #include "jni.h"
37 #include "java_md.h"
38
39 /*
40 * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
41 */
42 typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
43 typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);
44
95 jint ReadKnownVMs(const char *jrepath, char * arch, jboolean speculative);
96 char *CheckJvmType(int *argc, char ***argv, jboolean speculative);
97 void* MemAlloc(size_t size);
98
99 /*
100 * Make launcher spit debug output.
101 */
102 extern jboolean _launcher_debug;
103 /*
104 * This allows for finding classes from the VM's bootstrap class loader
105 * directly, FindClass uses the application class loader internally, this will
106 * cause unnecessary searching of the classpath for the required classes.
107 */
108 typedef jclass (JNICALL FindClassFromBootLoader_t(JNIEnv *env,
109 const char *name,
110 jboolean throwError));
111
112 jclass FindBootStrapClass(JNIEnv *env, const char *classname);
113
114 #endif /* _JAVA_H_ */
|
1 /*
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 OS_LINUX_LAUNCHER_JAVA_H
26 #define OS_LINUX_LAUNCHER_JAVA_H
27
28 /*
29 * Gamma (Hotspot internal engineering test) launcher based on 1.6.0-b28 JDK,
30 * search "GAMMA" for gamma specific changes.
31 */
32
33 #ifndef _JAVA_H_
34 #define _JAVA_H_
35
36 /*
37 * Get system specific defines.
38 */
39 #include "jni.h"
40 #include "java_md.h"
41
42 /*
43 * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
44 */
45 typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
46 typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);
47
98 jint ReadKnownVMs(const char *jrepath, char * arch, jboolean speculative);
99 char *CheckJvmType(int *argc, char ***argv, jboolean speculative);
100 void* MemAlloc(size_t size);
101
102 /*
103 * Make launcher spit debug output.
104 */
105 extern jboolean _launcher_debug;
106 /*
107 * This allows for finding classes from the VM's bootstrap class loader
108 * directly, FindClass uses the application class loader internally, this will
109 * cause unnecessary searching of the classpath for the required classes.
110 */
111 typedef jclass (JNICALL FindClassFromBootLoader_t(JNIEnv *env,
112 const char *name,
113 jboolean throwError));
114
115 jclass FindBootStrapClass(JNIEnv *env, const char *classname);
116
117 #endif /* _JAVA_H_ */
118
119 #endif // OS_LINUX_LAUNCHER_JAVA_H
|