From b71150621fd1357e4be1bf2644a3fd99e69bc933 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Fri, 22 Mar 2024 10:47:58 +0000 Subject: Rename MallocAllocator to CallocAllocator It was a misnomer since MallocAllocator was internally calling calloc. The difference is that calloc sets the memory to zero which malloc does not. Bug: 329037671 Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I77f44df2681b64a25e1d06773b2a2ed150748e00 --- compiler/optimizing/optimizing_unit_test.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 8729763e73..e1d8969b2b 100644 --- a/compiler/optimizing/optimizing_unit_test.h +++ b/compiler/optimizing/optimizing_unit_test.h @@ -340,7 +340,7 @@ class OptimizingUnitTestHelper { void EnsurePredecessorOrder(HBasicBlock* target, std::initializer_list preds) { // Make sure the given preds and block predecessors have the same blocks. - BitVector bv(preds.size(), false, Allocator::GetMallocAllocator()); + BitVector bv(preds.size(), false, Allocator::GetCallocAllocator()); auto preds_and_idx = ZipCount(MakeIterationRange(target->GetPredecessors())); bool correct_preds = preds.size() == target->GetPredecessors().size() && std::all_of(preds.begin(), preds.end(), [&](HBasicBlock* pred) { -- cgit v1.2.3-59-g8ed1b