summaryrefslogtreecommitdiffstats
path: root/runtime/mirror/art_method.h
diff options
context:
space:
mode:
authorHiroshi Yamauchi <yamauchi@google.com>2014-04-22 13:51:07 -0700
committerHiroshi Yamauchi <yamauchi@google.com>2014-04-22 14:26:21 -0700
commit9103c86a98524e9ddfd14f8cee56e919f68eee9b (patch)
tree69e64a2f618e10bb8f060cf7fb70c8e94dc43b50 /runtime/mirror/art_method.h
parentf7933e7f295bfe61cb0baf89469581c563032e96 (diff)
downloadart-9103c86a98524e9ddfd14f8cee56e919f68eee9b.tar.gz
art-9103c86a98524e9ddfd14f8cee56e919f68eee9b.tar.bz2
art-9103c86a98524e9ddfd14f8cee56e919f68eee9b.zip
More code for the read barrier support.
Make it possible to disable the RB in Object::SizeOf() (and the functions it calls transitively) which the collector will need to call to get the size of an object when copying. Add Object::AtomicSetReadBarrierPointer() for atomic write of a RB pointer. Bug: 12687968 Change-Id: Ibedd252860ac7ccd17e4e7d71b377a8892b48ff0
Diffstat (limited to 'runtime/mirror/art_method.h')
-rw-r--r--runtime/mirror/art_method.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/mirror/art_method.h b/runtime/mirror/art_method.h
index fd5ac19435..f513a04887 100644
--- a/runtime/mirror/art_method.h
+++ b/runtime/mirror/art_method.h
@@ -423,7 +423,9 @@ class MANAGED ArtMethod : public Object {
static void SetClass(Class* java_lang_reflect_ArtMethod);
+ template <bool kDoReadBarrier = true>
static Class* GetJavaLangReflectArtMethod() {
+ // This does not need a RB because it is a root.
return java_lang_reflect_ArtMethod_;
}