3c95dcfdc2
2006-08-10 Gary Benson <gbenson@redhat.com> * include/java-stack.h (GetAccessControlStack): Change return type. * stacktrace.cc (accesscontrol_trace_fn): Record the number of Java frames encountered. (GetAccessControlStack): Return a flag indicating whether a call to doPrivileged was encountered rather than an array of method names. * java/security/natVMAccessController.cc (getStack): Change return type. * java/security/VMAccessController.java (getStack): Likewise. (getContext): Change to reflect the above. From-SVN: r116058
24 lines
553 B
C++
24 lines
553 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>
|
|
|
|
jobjectArray
|
|
java::security::VMAccessController::getStack ()
|
|
{
|
|
return _Jv_StackTrace::GetAccessControlStack ();
|
|
}
|