OSDN Git Service

Remove an assertion that JDWP packets are small.
authorElliott Hughes <enh@google.com>
Tue, 16 Jul 2013 20:41:03 +0000 (13:41 -0700)
committerElliott Hughes <enh@google.com>
Tue, 16 Jul 2013 20:41:03 +0000 (13:41 -0700)
Now we support longer allocation tracker runs, it's possible
to collect more than 1MiB of data.

Bug: 9871848
Change-Id: Ifb575538b97563ce909f7e0aa6840ccbd6e93569

vm/jdwp/JdwpHandler.cpp

index 9126584..112ac4a 100644 (file)
@@ -1702,7 +1702,6 @@ static JdwpError handleDDM_Chunk(JdwpState* state,
      * heap requirements is probably more valuable than the efficiency.
      */
     if (dvmDbgDdmHandlePacket(buf, dataLen, &replyBuf, &replyLen)) {
-        assert(replyLen > 0 && replyLen < 1*1024*1024);
         memcpy(expandBufAddSpace(pReply, replyLen), replyBuf, replyLen);
         free(replyBuf);
     }