diff options
author | 2024-10-04 06:39:30 +0000 | |
---|---|---|
committer | 2024-10-04 14:04:37 +0000 | |
commit | 92a62ec92ef7ea0f047f5be569388608136b4803 (patch) | |
tree | b9ab473da3bff19055c9468b63513ca4e36e3175 /compiler/optimizing/instruction_builder.cc | |
parent | c7f1c1039a7eb4abdfd3800c1b876d546c3059f8 (diff) |
Reduce memory used by `HEnvironment`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: Ie05d4001e411a669e11b8edda375414e5da52ae2
Diffstat (limited to 'compiler/optimizing/instruction_builder.cc')
-rw-r--r-- | compiler/optimizing/instruction_builder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/instruction_builder.cc b/compiler/optimizing/instruction_builder.cc index 09d7c23fed..5b762d69fa 100644 --- a/compiler/optimizing/instruction_builder.cc +++ b/compiler/optimizing/instruction_builder.cc @@ -297,7 +297,7 @@ void HInstructionBuilder::InsertInstructionAtTop(HInstruction* instruction) { void HInstructionBuilder::InitializeInstruction(HInstruction* instruction) { if (instruction->NeedsEnvironment()) { - HEnvironment* environment = new (allocator_) HEnvironment( + HEnvironment* environment = HEnvironment::Create( allocator_, current_locals_->size(), graph_->GetArtMethod(), |