summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_compiler.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2016-11-22 13:45:36 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2016-11-22 14:21:31 +0000
commitf46501c6ad11025843682267c10f221323a206b1 (patch)
treea5b77de81f5ab31e66082b02b225e7fe56877f98 /compiler/optimizing/optimizing_compiler.cc
parent71d15102b52af67e8fe1193192aa2b4cd1956ae0 (diff)
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
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r--compiler/optimizing/optimizing_compiler.cc2
1 files changed, 1 insertions, 1 deletions
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;
}