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/scheduler_test.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/scheduler_test.cc')
-rw-r--r-- | compiler/optimizing/scheduler_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/optimizing/scheduler_test.cc b/compiler/optimizing/scheduler_test.cc index f613e0a9e2..182465aa54 100644 --- a/compiler/optimizing/scheduler_test.cc +++ b/compiler/optimizing/scheduler_test.cc @@ -111,11 +111,11 @@ class SchedulerTest : public CommonCompilerTest, public OptimizingUnitTestHelper DCHECK(div_check->CanThrow()); - HEnvironment* environment = new (GetAllocator()) HEnvironment(GetAllocator(), - 2, - graph_->GetArtMethod(), - 0, - div_check); + HEnvironment* environment = HEnvironment::Create(GetAllocator(), + /*number_of_vregs=*/ 2, + graph_->GetArtMethod(), + /*dex_pc=*/ 0, + div_check); div_check->SetRawEnvironment(environment); environment->SetRawEnvAt(0, add2); add2->AddEnvUseAt(div_check->GetEnvironment(), 0); |