From 5ed20f90acd05e1f8697340f11113f0c61c22492 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 5 Oct 2016 13:49:44 +0100 Subject: Make it possible to pass an arena allocator to HLoopOptimization. loop_optimization_test uses memory from HLoopOptimization's allocator, which is scoped by the Run method. Fix is to pass custom allocator. test: m test-art-host-gtest Change-Id: I359330e22202519f400a26da5403eeb00f0b2db4 --- compiler/optimizing/loop_optimization.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compiler/optimizing/loop_optimization.h') diff --git a/compiler/optimizing/loop_optimization.h b/compiler/optimizing/loop_optimization.h index d12fe5ee18..591e45a7fb 100644 --- a/compiler/optimizing/loop_optimization.h +++ b/compiler/optimizing/loop_optimization.h @@ -32,6 +32,9 @@ namespace art { class HLoopOptimization : public HOptimization { public: HLoopOptimization(HGraph* graph, HInductionVarAnalysis* induction_analysis); + HLoopOptimization(HGraph* graph, + HInductionVarAnalysis* induction_analysis, + ArenaAllocator* allocator); void Run() OVERRIDE; -- cgit v1.2.3