summaryrefslogtreecommitdiff
path: root/compiler/optimizing/optimizing_unit_test.h
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2024-03-22 10:47:58 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2024-03-25 15:13:59 +0000
commitb71150621fd1357e4be1bf2644a3fd99e69bc933 (patch)
tree56245d40e59089c748fadab509d93ddf860c6fc5 /compiler/optimizing/optimizing_unit_test.h
parent00fbc4047bd6a1984c333b93fc39e73e61a2521a (diff)
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
Diffstat (limited to 'compiler/optimizing/optimizing_unit_test.h')
-rw-r--r--compiler/optimizing/optimizing_unit_test.h2
1 files changed, 1 insertions, 1 deletions
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<HBasicBlock*> 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) {