From ebe167422f6197b9df0698bbeb944a0e4eea5f2d Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 5 Oct 2016 09:55:42 +0100 Subject: Properly scope HLoopOptimization's allocator. HOptimization classes do not get their destructor called, as they are arena objects. So the scope for the optimization allocator needs to be the Run method. Also anticipate bisection search breakage by adding HLoopOptimization to the list of recognized optimizations. Change-Id: I7770989c39d5700a3b6b0a20af5d4b874dfde111 --- compiler/optimizing/loop_optimization.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/loop_optimization.h') diff --git a/compiler/optimizing/loop_optimization.h b/compiler/optimizing/loop_optimization.h index e7980ce89e..d12fe5ee18 100644 --- a/compiler/optimizing/loop_optimization.h +++ b/compiler/optimizing/loop_optimization.h @@ -72,7 +72,7 @@ class HLoopOptimization : public HOptimization { // Phase-local heap memory allocator for the loop optimizer. Storage obtained // through this allocator is released when the loop optimizer is done. - ArenaAllocator loop_allocator_; + ArenaAllocator* loop_allocator_; // Entries into the loop hierarchy representation. LoopNode* top_loop_; -- cgit v1.2.3-59-g8ed1b