OSDN Git Service

Merge change 10723
authorAndroid Code Review <code-review@android.com>
Mon, 20 Jul 2009 23:07:43 +0000 (16:07 -0700)
committerAndroid Code Review <code-review@android.com>
Mon, 20 Jul 2009 23:07:43 +0000 (16:07 -0700)
* changes:
  Fix variable names related to bytecode tracing.

vm/Native.c

index 7a153d6..1000612 100644 (file)
@@ -545,7 +545,7 @@ static char* mangleString(const char* str, int len)
     for (i = 0; i < charLen; i++) {
         u2 ch = utf16[i];
 
-        if (ch > 127) {
+        if (ch == '$' || ch > 127) {
             mangleLen += 6;
         } else {
             switch (ch) {
@@ -570,7 +570,7 @@ static char* mangleString(const char* str, int len)
     for (i = 0, cp = mangle; i < charLen; i++) {
         u2 ch = utf16[i];
 
-        if (ch > 127) {
+        if (ch == '$' || ch > 127) {
             sprintf(cp, "_0%04x", ch);
             cp += 6;
         } else {