summaryrefslogtreecommitdiff
path: root/runtime/gc/heap.cc
diff options
context:
space:
mode:
author Roland Levillain <rpl@google.com> 2018-05-22 16:46:43 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-05-22 16:46:43 +0000
commitf31343f1eab771010b3f293366149d2524f30902 (patch)
tree5187b2bceee4c7d5347750dc6ba0020172d5ef51 /runtime/gc/heap.cc
parente816389b61d17b9a82d8e61426ddfcce20e1238c (diff)
parent8268cb677bd92bfbcfec7e803775c29687494e53 (diff)
Merge "Remove support for Valgrind in ART."
Diffstat (limited to 'runtime/gc/heap.cc')
-rw-r--r--runtime/gc/heap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/gc/heap.cc b/runtime/gc/heap.cc
index b004566ed1..12021b7f99 100644
--- a/runtime/gc/heap.cc
+++ b/runtime/gc/heap.cc
@@ -2248,7 +2248,8 @@ class ZygoteCompactingCollector FINAL : public collector::SemiSpace {
// Add a new bin with the remaining space.
AddBin(size - alloc_size, pos + alloc_size);
}
- // Copy the object over to its new location. Don't use alloc_size to avoid valgrind error.
+ // Copy the object over to its new location.
+ // Historical note: We did not use `alloc_size` to avoid a Valgrind error.
memcpy(reinterpret_cast<void*>(forward_address), obj, obj_size);
if (kUseBakerReadBarrier) {
obj->AssertReadBarrierState();