blob: 50e39256188256be191b74ec2a9e5b2ca47ae08b [file] [log] [blame]
// Copyright 2011 Google Inc. All Rights Reserved.
#include "jni.h"
#include "assembler.h"
#include "indirect_reference_table.h"
#include "macros.h"
#include "reference_table.h"
namespace art {
class Runtime;
class Thread;
struct JavaVMExt {
JavaVMExt(Runtime* runtime, bool check_jni);
// Must be first to correspond with JNIEnv.
const struct JNIInvokeInterface* fns;
Runtime* runtime;
bool check_jni;
// Used to hold references to pinned primitive arrays.
ReferenceTable pin_table;
// JNI global references.
IndirectReferenceTable globals;
// JNI weak global references.
IndirectReferenceTable weak_globals;
struct JNIEnvExt {
JNIEnvExt(Thread* self, bool check_jni);
// Must be first to correspond with JavaVM.
const struct JNINativeInterface* fns;
Thread* self;
bool check_jni;
// Are we in a "critical" JNI call?
bool critical;
// Entered JNI monitors, for bulk exit on thread detach.
ReferenceTable monitors;
// JNI local references.
IndirectReferenceTable locals;
} // namespace art