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/optimizing_unit_test.h | |
| 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/optimizing_unit_test.h')
| -rw-r--r-- | compiler/optimizing/optimizing_unit_test.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<HInstruction*>* current_locals) { - HEnvironment* environment = new (GetAllocator()) HEnvironment( - (GetAllocator()), + HEnvironment* environment = HEnvironment::Create( + GetAllocator(), current_locals->size(), graph_->GetArtMethod(), instruction->GetDexPc(), |