summaryrefslogtreecommitdiffstats
path: root/vm/Globals.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-07-10 19:15:13 -0700
committerElliott Hughes <enh@google.com>2011-07-10 19:15:13 -0700
commitea333384b92db9c400be1b4c8cb6992d9ba5f14d (patch)
tree0ff1eefaf98e9a16b08c24e2a99bdba5d1f773db /vm/Globals.h
parent0846f4ad3f3dacbceacd1617a2c4c194e8d28e98 (diff)
downloadandroid_dalvik-ea333384b92db9c400be1b4c8cb6992d9ba5f14d.tar.gz
android_dalvik-ea333384b92db9c400be1b4c8cb6992d9ba5f14d.tar.bz2
android_dalvik-ea333384b92db9c400be1b4c8cb6992d9ba5f14d.zip
Add JNI app bug workarounds.
Specifically, this hands out direct pointers for all local references, and lets you use a JNIEnv* on the wrong thread. This is off by default, but enabled for apps that don't have ICS as their targetSdkVersion. Bug: 4772166 Change-Id: I20c403a8e63481a35d579d2bd3b121c80ec08f89
Diffstat (limited to 'vm/Globals.h')
-rw-r--r--vm/Globals.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/Globals.h b/vm/Globals.h
index a47641b12..397bfea85 100644
--- a/vm/Globals.h
+++ b/vm/Globals.h
@@ -966,8 +966,8 @@ struct DvmJniGlobals {
bool warnOnly;
bool forceCopy;
- // Don't trust that we've been passed the right JNIEnv* for this thread.
- bool alwaysCheckThread;
+ // Provide backwards compatibility for pre-ICS apps on ICS.
+ bool workAroundAppJniBugs;
// Debugging help for third-party developers. Similar to -Xjnitrace.
bool logThirdPartyJni;