1 /* src/native/vm/gnu/gnu_java_lang_management_VMRuntimeMXBeanImpl.c
3 Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4 C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 J. Wenninger, Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
32 #include "native/jni.h"
33 #include "native/native.h"
35 #include "native/include/gnu_java_lang_management_VMRuntimeMXBeanImpl.h"
37 #include "vm/builtin.h"
38 #include "vm/global.h"
41 #include "vmcore/class.h"
42 #include "vmcore/utf8.h"
45 /* native methods implemented by this file ************************************/
47 static JNINativeMethod methods[] = {
48 { "getInputArguments", "()[Ljava/lang/String;", (void *) (intptr_t) &Java_gnu_java_lang_management_VMRuntimeMXBeanImpl_getInputArguments },
49 { "getStartTime", "()J", (void *) (intptr_t) &Java_gnu_java_lang_management_VMRuntimeMXBeanImpl_getStartTime },
53 /* _Jv_gnu_java_lang_management_VMRuntimeMXBeanImpl_init ***********************
55 Register native functions.
57 *******************************************************************************/
59 void _Jv_gnu_java_lang_management_VMRuntimeMXBeanImpl_init(void)
63 u = utf_new_char("gnu/java/lang/management/VMRuntimeMXBeanImpl");
65 native_method_register(u, methods, NATIVE_METHODS_COUNT);
70 * Class: gnu/java/lang/management/VMRuntimeMXBeanImpl
71 * Method: getInputArguments
72 * Signature: ()[Ljava/lang/String;
74 JNIEXPORT java_handle_objectarray_t* JNICALL Java_gnu_java_lang_management_VMRuntimeMXBeanImpl_getInputArguments(JNIEnv *env, jclass clazz)
76 log_println("Java_gnu_java_lang_management_VMRuntimeMXBeanImpl_getInputArguments: IMPLEMENT ME!");
78 return builtin_anewarray(0, class_java_lang_String);
83 * Class: gnu/java/lang/management/VMRuntimeMXBeanImpl
84 * Method: getStartTime
87 JNIEXPORT int64_t JNICALL Java_gnu_java_lang_management_VMRuntimeMXBeanImpl_getStartTime(JNIEnv *env, jclass clazz)
89 return _Jv_jvm->starttime;
93 * These are local overrides for various environment variables in Emacs.
94 * Please do not remove this and leave it at the end of the file, where
95 * Emacs will automagically detect them.
96 * ---------------------------------------------------------------------
103 * vim:noexpandtab:sw=4:ts=4: