jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count as a sigle slot.
authorKyle Galloway <kgallowa@gcc.gnu.org>
Mon, 12 Mar 2007 20:15:25 +0000 (20:15 +0000)
committerKyle Galloway <kgallowa@gcc.gnu.org>
Mon, 12 Mar 2007 20:15:25 +0000 (20:15 +0000)
2007-03-12  Kyle Galloway  <kgallowa@redhat.com>

* jvmti.cc (_Jv_JVMTI_GetArgumentsSize): Make wide type arrays count
as a sigle slot.

From-SVN: r122864

libjava/jvmti.cc

index e9fa0a229272e391d569fc4bb06f00396ce97ee3..716e96ae6828d4fc67e4c69bd7e37d27d90528c6 100644 (file)
@@ -1113,7 +1113,7 @@ _Jv_JVMTI_GetArgumentsSize (jvmtiEnv *env, jmethodID method, jint *size)
       else if (sig[i] == 'J' || sig[i] == 'D')
         {
           // If this is an array of wide types it uses a single slot
-          if (i > 0 && sig[i-1] == '[')
+          if (i > 0 && sig[i - 1] == '[')
             num_slots++;
           else
             num_slots += 2;