commit | 22d8dba8ae5be7aecb07322a410712206896fa15 | [log] [tgz] |
---|---|---|
author | Tim Murray <timmurray@google.com> | Mon Jan 14 14:09:33 2013 -0800 |
committer | Tim Murray <timmurray@google.com> | Mon Jan 14 14:09:33 2013 -0800 |
tree | 48dade3b5c76830f5b2e0aba13f5b781fd6b3cb3 | |
parent | 43779d4dbc4cee2959a69740c7a8fddf3fe47513 [diff] |
fix DDMS crash Change-Id: Ic5edd3d9367db8570523e1380c3e6edfabeec2c0
diff --git a/vm/alloc/DdmHeap.cpp b/vm/alloc/DdmHeap.cpp index 45b0a26..0f1fc31 100644 --- a/vm/alloc/DdmHeap.cpp +++ b/vm/alloc/DdmHeap.cpp
@@ -189,6 +189,10 @@ static void flush_hpsg_chunk(HeapChunkContext *ctx) { + if (ctx->pieceLenField == NULL && ctx->needHeader) { + /* Already flushed */ + return; + } /* Patch the "length of piece" field. */ assert(ctx->buf <= ctx->pieceLenField &&