OSDN Git Service

Fix dvmHumanReadableDescriptor("B").
authorElliott Hughes <enh@google.com>
Thu, 2 Dec 2010 00:59:21 +0000 (16:59 -0800)
committerElliott Hughes <enh@google.com>
Thu, 2 Dec 2010 17:55:25 +0000 (09:55 -0800)
commit98c3592ce74e1a516e7a2b93b82525c92918b0e4
treea06fa239b210ff4bc721f4bf4c765febb236ac89
parent94a6213f5693c3cd994f9734c6a085003692a5ba
Fix dvmHumanReadableDescriptor("B").

dvmHumanReadableDescriptor was failing for primitive scalars in
libdvm_assert.so --- there was an assertion that wasn't true,
because we wouldn't have copied the ';' into the result (in the
other cases, we'd copy the ';' and then overwrite it).

This patch rewrites dvmHumanReadableDescriptor to be a little
less tasteless, removes the asserts, behave better when out of
memory, and to include unit tests (currently only runnable on
the device).

Bug: 3245572
Change-Id: I57b06c774a5bc61c2d374cce6285553c3c5f388b
Android.mk
unit-tests/Android.mk [new file with mode: 0644]
unit-tests/dvmHumanReadableDescriptor_test.cpp [new file with mode: 0644]
vm/Misc.c