summaryrefslogtreecommitdiff
path: root/compiler/optimizing/superblock_cloner.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-10-04 06:39:30 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-10-04 14:04:37 +0000
commit92a62ec92ef7ea0f047f5be569388608136b4803 (patch)
treeb9ab473da3bff19055c9468b63513ca4e36e3175 /compiler/optimizing/superblock_cloner.cc
parentc7f1c1039a7eb4abdfd3800c1b876d546c3059f8 (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/superblock_cloner.cc')
-rw-r--r--compiler/optimizing/superblock_cloner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/superblock_cloner.cc b/compiler/optimizing/superblock_cloner.cc
index e14f7347fb..1e74dcba78 100644
--- a/compiler/optimizing/superblock_cloner.cc
+++ b/compiler/optimizing/superblock_cloner.cc
@@ -134,7 +134,7 @@ void SuperblockCloner::DeepCloneEnvironmentWithRemapping(HInstruction* copy_inst
if (orig_env->GetParent() != nullptr) {
DeepCloneEnvironmentWithRemapping(copy_instr, orig_env->GetParent());
}
- HEnvironment* copy_env = new (arena_) HEnvironment(arena_, *orig_env, copy_instr);
+ HEnvironment* copy_env = HEnvironment::Create(arena_, *orig_env, copy_instr);
for (size_t i = 0; i < orig_env->Size(); i++) {
HInstruction* env_input = orig_env->GetInstructionAt(i);