annotate src/os/solaris/launcher/java.h @ 470:ad8c8ca4ab0f

6785258: Update copyright year Summary: Update copyright for files that have been modified starting July 2008 to Dec 2008 Reviewed-by: katleman, ohair, tbell
author xdono
date Mon, 15 Dec 2008 16:55:11 -0800
parents f008d3631bd1
children c18cbe5936b8
rev   line source
duke@0 1 /*
xdono@470 2 * Copyright 1998-2008 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 *
duke@0 5 * This code is free software; you can redistribute it and/or modify it
duke@0 6 * under the terms of the GNU General Public License version 2 only, as
duke@0 7 * published by the Free Software Foundation.
duke@0 8 *
duke@0 9 * This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 * version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 * accompanied this code).
duke@0 14 *
duke@0 15 * You should have received a copy of the GNU General Public License version
duke@0 16 * 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 *
duke@0 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 20 * CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 21 * have any questions.
duke@0 22 *
duke@0 23 */
duke@0 24
duke@0 25 /*
duke@0 26 * Gamma (Hotspot internal engineering test) launcher based on 1.6.0-b28 JDK,
duke@0 27 * search "GAMMA" for gamma specific changes.
duke@0 28 */
duke@0 29
duke@0 30 #ifndef _JAVA_H_
duke@0 31 #define _JAVA_H_
duke@0 32
duke@0 33 /*
duke@0 34 * Get system specific defines.
duke@0 35 */
duke@0 36 #include "jni.h"
duke@0 37 #include "java_md.h"
duke@0 38
duke@0 39 /*
duke@0 40 * Pointers to the needed JNI invocation API, initialized by LoadJavaVM.
duke@0 41 */
duke@0 42 typedef jint (JNICALL *CreateJavaVM_t)(JavaVM **pvm, void **env, void *args);
duke@0 43 typedef jint (JNICALL *GetDefaultJavaVMInitArgs_t)(void *args);
duke@0 44
duke@0 45 typedef struct {
duke@0 46 CreateJavaVM_t CreateJavaVM;
duke@0 47 GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs;
duke@0 48 } InvocationFunctions;
duke@0 49
duke@0 50 /*
duke@0 51 * Prototypes for launcher functions in the system specific java_md.c.
duke@0 52 */
duke@0 53
duke@0 54 jboolean
duke@0 55 LoadJavaVM(const char *jvmpath, InvocationFunctions *ifn);
duke@0 56
duke@0 57 void
duke@0 58 GetXUsagePath(char *buf, jint bufsize);
duke@0 59
duke@0 60 jboolean
duke@0 61 GetApplicationHome(char *buf, jint bufsize);
duke@0 62
duke@0 63 const char *
duke@0 64 GetArch();
duke@0 65
duke@0 66 void CreateExecutionEnvironment(int *_argc,
duke@0 67 char ***_argv,
duke@0 68 char jrepath[],
duke@0 69 jint so_jrepath,
duke@0 70 char jvmpath[],
duke@0 71 jint so_jvmpath,
duke@0 72 char **original_argv);
duke@0 73
duke@0 74 /*
duke@0 75 * Report an error message to stderr or a window as appropriate. The
duke@0 76 * flag always is set to JNI_TRUE if message is to be reported to both
duke@0 77 * strerr and windows and set to JNI_FALSE if the message should only
duke@0 78 * be sent to a window.
duke@0 79 */
duke@0 80 void ReportErrorMessage(char * message, jboolean always);
duke@0 81 void ReportErrorMessage2(char * format, char * string, jboolean always);
duke@0 82
duke@0 83 /*
duke@0 84 * Report an exception which terminates the vm to stderr or a window
duke@0 85 * as appropriate.
duke@0 86 */
duke@0 87 void ReportExceptionDescription(JNIEnv * env);
duke@0 88
duke@0 89 jboolean RemovableMachineDependentOption(char * option);
duke@0 90 void PrintMachineDependentOptions();
duke@0 91
duke@0 92 /*
duke@0 93 * Functions defined in java.c and used in java_md.c.
duke@0 94 */
duke@0 95 jint ReadKnownVMs(const char *jrepath, char * arch, jboolean speculative);
duke@0 96 char *CheckJvmType(int *argc, char ***argv, jboolean speculative);
duke@0 97 void* MemAlloc(size_t size);
duke@0 98
duke@0 99 /*
duke@0 100 * Make launcher spit debug output.
duke@0 101 */
duke@0 102 extern jboolean _launcher_debug;
duke@0 103
ksrini@388 104 /*
ksrini@388 105 * This allows for finding classes from the VM's bootstrap class loader
ksrini@388 106 * directly, FindClass uses the application class loader internally, this will
ksrini@388 107 * cause unnecessary searching of the classpath for the required classes.
ksrini@388 108 */
ksrini@388 109 typedef jclass (JNICALL FindClassFromBootLoader_t(JNIEnv *env,
ksrini@388 110 const char *name,
ksrini@388 111 jboolean throwError));
ksrini@388 112
ksrini@388 113 jclass FindBootStrapClass(JNIEnv *env, const char *classname);
ksrini@388 114
duke@0 115 #endif /* _JAVA_H_ */