From 928f72bd75c385ba2708c58521171a77264d4486 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Tue, 9 Sep 2014 19:53:48 -0700 Subject: ART: Fix things for valgrind Wire up valgrind gtests. Add valgrind-test-art-host, currently only depending on valgrind-test-art-host-gtest32. Fix an Alloc setting to allow running valgrind. Refactor the fault handler to manage (and correctly release) the handlers. Fix minor failure-case leaks exposed by tests. Failing tests: The optimizing compiler is leaking non-arena-ed structures (e.g., assembler buffers), as code generators are not destroyed. The solution has been moved to a follow-up CL. Note: All 64b tests are failing as we cannot allocate a heap. Change-Id: I7f854cfd098d9f68107ce492363e7dba9a82b9fa --- compiler/utils/assembler.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler/utils/assembler.cc') diff --git a/compiler/utils/assembler.cc b/compiler/utils/assembler.cc index 68b784a25c..e3045e1a7b 100644 --- a/compiler/utils/assembler.cc +++ b/compiler/utils/assembler.cc @@ -92,6 +92,7 @@ void AssemblerBuffer::ExtendCapacity() { // Compute the relocation delta and switch to the new contents area. ptrdiff_t delta = new_contents - contents_; + delete[] contents_; contents_ = new_contents; // Update the cursor and recompute the limit. -- cgit v1.2.3-59-g8ed1b