OSDN Git Service

Remove the stopAtPrivileged argument.
authorDan Bornstein <danfuzz@android.com>
Fri, 11 Mar 2011 00:16:11 +0000 (16:16 -0800)
committerDan Bornstein <danfuzz@android.com>
Fri, 11 Mar 2011 00:16:11 +0000 (16:16 -0800)
It's superfluous now.

Change-Id: I23a3319285eab4858c9dd649aebe22df4139fe28

vm/native/dalvik_system_VMStack.c

index 12abf55..8891933 100644 (file)
@@ -71,7 +71,7 @@ static void Dalvik_dalvik_system_VMStack_getStackClass2(const u4* args,
 }
 
 /*
- * public static Class<?>[] getClasses(int maxDepth, boolean stopAtPrivileged)
+ * public static Class<?>[] getClasses(int maxDepth)
  *
  * Create an array of classes for the methods on the stack, skipping the
  * first two and all reflection methods.  If "stopAtPrivileged" is set,
@@ -82,7 +82,6 @@ static void Dalvik_dalvik_system_VMStack_getClasses(const u4* args,
 {
     /* note "maxSize" is unsigned, so -1 turns into a very large value */
     unsigned int maxSize = args[0];
-    //bool stopAtPrivileged = args[1]; // This argument is ignored.
     unsigned int size = 0;
     const unsigned int kSkip = 2;
     const Method** methods = NULL;
@@ -217,7 +216,7 @@ const DalvikNativeMethod dvm_dalvik_system_VMStack[] = {
         Dalvik_dalvik_system_VMStack_getCallingClassLoader2 },
     { "getStackClass2", "()Ljava/lang/Class;",
         Dalvik_dalvik_system_VMStack_getStackClass2 },
-    { "getClasses",             "(IZ)[Ljava/lang/Class;",
+    { "getClasses",             "(I)[Ljava/lang/Class;",
         Dalvik_dalvik_system_VMStack_getClasses },
     { "getThreadStackTrace",    "(Ljava/lang/Thread;)[Ljava/lang/StackTraceElement;",
         Dalvik_dalvik_system_VMStack_getThreadStackTrace },