summaryrefslogtreecommitdiffstats
path: root/core/jni/android_util_Process.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-04-13 15:39:37 -0700
committerElliott Hughes <enh@google.com>2011-04-13 16:43:15 -0700
commitd195e5ab401432ddac659791640a2927fc668699 (patch)
tree61169b923b4d530a097ac8ff9e3029dfe468b7cd /core/jni/android_util_Process.cpp
parent966f9e558d714d9d41189e989b21e6d5fec35047 (diff)
downloadframeworks_base-d195e5ab401432ddac659791640a2927fc668699.zip
frameworks_base-d195e5ab401432ddac659791640a2927fc668699.tar.gz
frameworks_base-d195e5ab401432ddac659791640a2927fc668699.tar.bz2
Replace a custom AndroidRuntime::findClass with a more targeted fix.
This seems simpler and more contained, and I think the comment explaining why hoop-jumping is necessary is a bit clearer now. Change-Id: Ief4afd7cbb42188ed835fce23e497520bdb753a8
Diffstat (limited to 'core/jni/android_util_Process.cpp')
-rw-r--r--core/jni/android_util_Process.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/jni/android_util_Process.cpp b/core/jni/android_util_Process.cpp
index 34f0fdc..e5c2848 100644
--- a/core/jni/android_util_Process.cpp
+++ b/core/jni/android_util_Process.cpp
@@ -103,17 +103,6 @@ static void signalExceptionForGroupError(JNIEnv* env, jobject obj, int err)
}
}
-
-static void fakeProcessEntry(void* arg)
-{
- String8* cls = (String8*)arg;
-
- AndroidRuntime* jr = AndroidRuntime::getRuntime();
- jr->callMain(cls->string(), 0, NULL);
-
- delete cls;
-}
-
jint android_os_Process_myPid(JNIEnv* env, jobject clazz)
{
return getpid();