From f46501c6ad11025843682267c10f221323a206b1 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 22 Nov 2016 13:45:36 +0000 Subject: Clear the right data pointer. Internally, stack_map_data is an offset of the roots_data allocation. Pass both to the ClearData method, which will use the right pointer to deallocate. Test: test-art-host in debug mode Change-Id: Ibfe38e7f1853870076048427f2efe7121c11c136 --- compiler/optimizing/optimizing_compiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 604d99c682..2382b728df 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -1211,7 +1211,7 @@ bool OptimizingCompiler::JitCompile(Thread* self, roots); if (code == nullptr) { - code_cache->ClearData(self, stack_map_data); + code_cache->ClearData(self, stack_map_data, roots_data); return false; } -- cgit v1.2.3-59-g8ed1b