diff options
author | 2024-03-22 10:45:15 +0000 | |
---|---|---|
committer | 2024-03-25 13:43:14 +0000 | |
commit | 56dcaeec46dd53e271d6f201d2028996bf19f9dd (patch) | |
tree | ea607494f1912d60e838be94919e25db2ec3ac89 /libartbase/base/allocator.cc | |
parent | 9c4a2b5bb3695349e31a00492731e578e8853a21 (diff) |
Remove extra uses of ClearAllBits
ArenaBitVector creation guarantees it starts empty. Add a debug
check to make sure this assumption doesn't change.
Note that ArenaAllocator guarantees zero-initialized memory but
ScopedArenaAllocators do not. This is fine either way since the
BitVector constructor calls ClearAllBits.
Bug: 329037671
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: Icbf5e5dd1869e80b5d5828ecca9f13de30c0242b
Diffstat (limited to 'libartbase/base/allocator.cc')
-rw-r--r-- | libartbase/base/allocator.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libartbase/base/allocator.cc b/libartbase/base/allocator.cc index 71a4f6cce4..b65ba16eb2 100644 --- a/libartbase/base/allocator.cc +++ b/libartbase/base/allocator.cc @@ -25,6 +25,7 @@ namespace art { +// Note that this class is a misnomer as it calls `calloc` which sets the memory to zero. class MallocAllocator final : public Allocator { public: MallocAllocator() {} |