summaryrefslogtreecommitdiffstats
path: root/runtime/mirror/class.cc
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/class.cc
parentf7933e7f295bfe61cb0baf89469581c563032e96 (diff)
downloadart-9103c86a98524e9ddfd14f8cee56e919f68eee9b.zip
art-9103c86a98524e9ddfd14f8cee56e919f68eee9b.tar.gz
art-9103c86a98524e9ddfd14f8cee56e919f68eee9b.tar.bz2
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/class.cc')
-rw-r--r--runtime/mirror/class.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/runtime/mirror/class.cc b/runtime/mirror/class.cc
index 6dbb29d..ad86e1f 100644
--- a/runtime/mirror/class.cc
+++ b/runtime/mirror/class.cc
@@ -328,16 +328,6 @@ bool Class::IsThrowableClass() {
return WellKnownClasses::ToClass(WellKnownClasses::java_lang_Throwable)->IsAssignableFrom(this);
}
-bool Class::IsArtFieldClass() {
- Class* java_lang_Class = GetClass();
- Class* java_lang_reflect_ArtField = java_lang_Class->GetInstanceField(0)->GetClass();
- return this == java_lang_reflect_ArtField;
-}
-
-bool Class::IsArtMethodClass() {
- return this == ArtMethod::GetJavaLangReflectArtMethod();
-}
-
void Class::SetClassLoader(ClassLoader* new_class_loader) {
if (Runtime::Current()->IsActiveTransaction()) {
SetFieldObject<true>(OFFSET_OF_OBJECT_MEMBER(Class, class_loader_), new_class_loader, false);