extern "C" JavaObject* Java_gnu_classpath_VMStackWalker_getCallingClassLoader__() { JavaObject* res = 0; llvm_gcroot(res, 0); BEGIN_NATIVE_EXCEPTION(0) JavaThread* th = JavaThread::get(); UserClass* cl = th->getCallingClassLevel(2); res = cl->classLoader->getJavaClassLoader(); END_NATIVE_EXCEPTION return res; }
extern "C" JavaObject* nativeGetCallingClassLoader() { JavaObject* res = 0; llvm_gcroot(res, 0); BEGIN_NATIVE_EXCEPTION(0) JavaThread* th = JavaThread::get(); UserClass* cl = th->getCallingClassLevel(2); res = cl->classLoader->getJavaClassLoader(); END_NATIVE_EXCEPTION return res; }
extern "C" JavaObject* Java_gnu_classpath_VMStackWalker_getCallingClass__() { JavaObject* res = 0; llvm_gcroot(res, 0); BEGIN_NATIVE_EXCEPTION(0) JavaThread* th = JavaThread::get(); UserClass* cl = th->getCallingClassLevel(2); if (cl != NULL) res = cl->getClassDelegatee(th->getJVM()); END_NATIVE_EXCEPTION return res; }
extern "C" JavaObject* nativeGetCallingClass() { JavaObject* res = 0; llvm_gcroot(res, 0); BEGIN_NATIVE_EXCEPTION(0) JavaThread* th = JavaThread::get(); UserClass* cl = th->getCallingClassLevel(2); if (cl != NULL) res = cl->getClassDelegatee(th->getJVM()); END_NATIVE_EXCEPTION return res; }
extern "C" JavaObject* Java_sun_reflect_Reflection_getCallerClass__I(uint32 index) { JavaObject* res = 0; llvm_gcroot(res, 0); BEGIN_NATIVE_EXCEPTION(0) JavaThread* th = JavaThread::get(); Jnjvm* vm = th->getJVM(); UserClass* cl = th->getCallingClassLevel(index); if (cl) res = cl->getClassDelegatee(vm); END_NATIVE_EXCEPTION return res; }