OSDN Git Service

Avoid read barriers for ArtMethod::GetDexFile
authorMathieu Chartier <mathieuc@google.com>
Thu, 26 Jan 2017 22:03:11 +0000 (14:03 -0800)
committerMathieu Chartier <mathieuc@google.com>
Fri, 27 Jan 2017 01:04:55 +0000 (17:04 -0800)
commit137cdfa1e8a3810fb86d3298ec10036c0491d13f
treedb568fce8feec0ae6910ff1150cf46f08fe7e3e5
parentfbf47ea64a9f797a82030e919fa4f085c9eb5b28
Avoid read barriers for ArtMethod::GetDexFile

Shows up in pmd benchmark from Class::FindDeclaredDirectMethod and
Class::FindDeclaredVirtualMethod. There are still calls to
IsProxyMethod that could probably be eliminated.

ReadBarrier::Mark goes from 12.39% to 3.45% according to perf.

Test: test-art-host

Change-Id: I6a4f2fa2d68bf5f393f83b9b70e8d6fcc9dbdaa2
runtime/art_method-inl.h
runtime/art_method.h
runtime/mirror/class-inl.h
runtime/mirror/class.h