summaryrefslogtreecommitdiff
path: root/runtime/mirror/array-inl.h
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2020-07-22 21:51:00 +0100
committer Treehugger Robot <treehugger-gerrit@google.com> 2020-07-23 13:18:06 +0000
commitaacf977a3b3af644a7e2eb58d8e56a23d1f3d215 (patch)
tree6a595bf88f3124e61c826bcd72520dd406664f1e /runtime/mirror/array-inl.h
parent4ef451aecd4008ccee2ebf6136a70ed6a5c14717 (diff)
Reword some comments to be more inclusive
Also corrects a typo s/He/We/. Bug: 161336379 Bug: 161850439 Bug: 161896447 Test: m Change-Id: Ie8e37310eb777b7ee41a13f8894e99795c29a98a
Diffstat (limited to 'runtime/mirror/array-inl.h')
-rw-r--r--runtime/mirror/array-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/array-inl.h b/runtime/mirror/array-inl.h
index 6d52d44192..b0e77b45a6 100644
--- a/runtime/mirror/array-inl.h
+++ b/runtime/mirror/array-inl.h
@@ -45,7 +45,7 @@ inline size_t Array::SizeOf() {
// Don't need to check this since we already check this in GetClass.
int32_t component_count =
GetLength<static_cast<VerifyObjectFlags>(kVerifyFlags & ~kVerifyThis)>();
- // This is safe from overflow because the array was already allocated, so we know it's sane.
+ // This is safe from overflow because the array was already allocated.
size_t header_size = DataOffset(1U << component_size_shift).SizeValue();
size_t data_size = component_count << component_size_shift;
return header_size + data_size;