OSDN Git Service

Fix some issues reported by Valgrind
authorAnton Kirilov <anton.kirilov@linaro.org>
Fri, 6 Jan 2017 13:33:42 +0000 (13:33 +0000)
committerAnton Kirilov <anton.kirilov@linaro.org>
Mon, 9 Jan 2017 12:20:04 +0000 (12:20 +0000)
commit3a2e78ebade9f7e0444be6f6817cbf116b34e7b1
treeda8d025ac510215e89224fed43660749665c5e3d
parent91db41f315f6c2366b7098c531224bee01170364
Fix some issues reported by Valgrind

* Update the target suppression file.
* Disable the detection of mismatched free() / delete / delete []
calls, since it results in a lot of false positives (a known
Valgrind limitation associated with asymmetric inlining of
operator new() and operator delete()).
* Avoid a memory leak in the code generator tests, caused by the
fact that the VIXL-based ARM code generator does not always use
the arena allocator.
* Fix an access to uninitialized memory.

Test: m valgrind-test-art-target
Test: valgrind --leak-check=full --show-mismatched-frees=no \
               --ignore-range-below-sp=1024-1 \
               --suppressions=valgrind-target-suppressions.txt \
               dalvikvm ...
Change-Id: I891a3247aa9828226b4e62c69d6e1c8398d757b8
build/Android.gtest.mk
compiler/optimizing/codegen_test.cc
runtime/oat_file.cc
test/valgrind-target-suppressions.txt