OSDN Git Service

Avoid using memcpy for object header in ConcurrentCopying::Copy
authorMathieu Chartier <mathieuc@google.com>
Thu, 15 Sep 2016 20:12:47 +0000 (13:12 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 15 Sep 2016 21:52:41 +0000 (14:52 -0700)
commitd818adbd958219655cee380a3a1f6049d78bbcde
treeda86923519a5b8ae9727fe3b8755b14254ae0e4c
parent6b4d988feb18559204f7175914851baf28febd8c
Avoid using memcpy for object header in ConcurrentCopying::Copy

Memcpy can do per byte copy, this occasionally caused tearing in
the lockword when read from the source resulting in incorrect
values.

Test: test-art-host CC baker

Bug: 31423258
Change-Id: I13f856835125a3aa331530fb1f16db45d1955c8a
runtime/gc/collector/concurrent_copying.cc