diff options
author | Elliott Hughes <enh@google.com> | 2011-04-13 15:39:37 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-04-13 16:43:15 -0700 |
commit | d195e5ab401432ddac659791640a2927fc668699 (patch) | |
tree | 61169b923b4d530a097ac8ff9e3029dfe468b7cd /core/jni/android_util_Process.cpp | |
parent | 966f9e558d714d9d41189e989b21e6d5fec35047 (diff) | |
download | frameworks_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.cpp | 11 |
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(); |