464fc7a199
2006-07-28 Gary Benson <gbenson@redhat.com> Casey Marshall <csm@gnu.org> PR libgcj/13604: * include/java-stack.h (GetClassMethodStack): Declare. * stacktrace.cc (GetClassMethodStack): New method. * java/security/AccessController.java: Removed. * java/security/VMAccessController.java: New file. * java/security/natVMAccessController.cc: Likewise. * Makefile.am (nat_source_files): Added the above. * sources.am, Makefile.in: Rebuilt. Co-Authored-By: Casey Marshall <csm@gnu.org> From-SVN: r115793
31 lines
732 B
C++
31 lines
732 B
C++
// natVMAccessController.cc -- Native part of the VMAccessController class.
|
|
|
|
/* Copyright (C) 2006 Free Software Foundation, Inc.
|
|
|
|
This file is part of libgcj.
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
details. */
|
|
|
|
#include <config.h>
|
|
|
|
#include <gcj/cni.h>
|
|
#include <jvm.h>
|
|
#include <java-stack.h>
|
|
|
|
#include <java/security/VMAccessController.h>
|
|
|
|
JArray<jobjectArray> *
|
|
java::security::VMAccessController::getStack ()
|
|
{
|
|
_Jv_StackTrace *trace = _Jv_StackTrace::GetStackTrace ();
|
|
return _Jv_StackTrace::GetClassMethodStack (trace);
|
|
}
|
|
|
|
jboolean
|
|
java::security::VMAccessController::runtimeInitialized ()
|
|
{
|
|
return gcj::runtimeInitialized;
|
|
}
|