From 92a62ec92ef7ea0f047f5be569388608136b4803 Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Fri, 4 Oct 2024 06:39:30 +0000 Subject: Reduce memory used by `HEnvironment`. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 181943478 Change-Id: Ie05d4001e411a669e11b8edda375414e5da52ae2 --- compiler/optimizing/optimizing_unit_test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/optimizing_unit_test.h') diff --git a/compiler/optimizing/optimizing_unit_test.h b/compiler/optimizing/optimizing_unit_test.h index 2fe11299fc..6d451663e5 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -404,8 +404,8 @@ class OptimizingUnitTestHelper { HEnvironment* ManuallyBuildEnvFor(HInstruction* instruction, ArenaVector* current_locals) { - HEnvironment* environment = new (GetAllocator()) HEnvironment( - (GetAllocator()), + HEnvironment* environment = HEnvironment::Create( + GetAllocator(), current_locals->size(), graph_->GetArtMethod(), instruction->GetDexPc(), -- cgit v1.2.3-59-g8ed1b