1 /* src/native/vm/gnu/java_security_VMAccessController.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
25 $Id: java_security_VMAccessController.c 8318 2007-08-16 10:05:34Z michi $
33 #include "native/jni.h"
34 #include "native/native.h"
36 #include "native/include/java_security_VMAccessController.h"
38 #include "vm/builtin.h"
40 #include "vm/jit/stacktrace.h"
42 #include "vmcore/class.h"
43 #include "vmcore/options.h"
46 /* native methods implemented by this file ************************************/
48 static JNINativeMethod methods[] = {
49 { "getStack", "()[[Ljava/lang/Object;", (void *) (ptrint) &Java_java_security_VMAccessController_getStack },
53 /* _Jv_java_security_VMAccessController_init ***********************************
55 Register native functions.
57 *******************************************************************************/
59 void _Jv_java_security_VMAccessController_init(void)
63 u = utf_new_char("java/security/VMAccessController");
65 native_method_register(u, methods, NATIVE_METHODS_COUNT);
70 * Class: java/security/VMAccessController
72 * Signature: ()[[Ljava/lang/Object;
74 JNIEXPORT java_handle_objectarray_t* JNICALL Java_java_security_VMAccessController_getStack(JNIEnv *env, jclass clazz)
76 return stacktrace_getStack();
81 * These are local overrides for various environment variables in Emacs.
82 * Please do not remove this and leave it at the end of the file, where
83 * Emacs will automagically detect them.
84 * ---------------------------------------------------------------------