summaryrefslogtreecommitdiff
path: root/compiler/image_writer.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-12-09 10:20:54 +0000
committer Vladimir Marko <vmarko@google.com> 2016-12-09 13:02:40 +0000
commitc5798bf82fc0ccd0bb90e0813d8e63df4d0576cc (patch)
tree89c94659ad977b66f4d2a90981ed7c63c0af636a /compiler/image_writer.h
parentaea9ffece7eb32f3884a4ad0553e1df4d90fd9e4 (diff)
Revert^8 "Make sure that const-class linkage is preserved."
Replaced two ReaderMutexLocks with WriterMutexLocks. Removed some unnecessary debugging output. Test: m test-art-host Bug: 30627598 Original-Change-Id: Ie9b721464b4e9a5dcce8df8095548e983bba1fe8 This reverts commit 2c8c6b63da6ecb2ac701cc30f9b4fa4a8eea5cc8. Change-Id: I3a1aeecf64e4b202cef61cceb248d48106a2f4a6
Diffstat (limited to 'compiler/image_writer.h')
-rw-r--r--compiler/image_writer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/image_writer.h b/compiler/image_writer.h
index 24fad466e4..c5374838f6 100644
--- a/compiler/image_writer.h
+++ b/compiler/image_writer.h
@@ -50,6 +50,7 @@ class ImageSpace;
} // namespace space
} // namespace gc
+class ClassLoaderVisitor;
class ClassTable;
static constexpr int kInvalidFd = -1;
@@ -373,6 +374,9 @@ class ImageWriter FINAL {
void ComputeLazyFieldsForImageClasses()
REQUIRES_SHARED(Locks::mutator_lock_);
+ // Visit all class loaders.
+ void VisitClassLoaders(ClassLoaderVisitor* visitor) REQUIRES_SHARED(Locks::mutator_lock_);
+
// Remove unwanted classes from various roots.
void PruneNonImageClasses() REQUIRES_SHARED(Locks::mutator_lock_);
@@ -588,7 +592,8 @@ class ImageWriter FINAL {
class FixupVisitor;
class GetRootsVisitor;
class NativeLocationVisitor;
- class NonImageClassesVisitor;
+ class PruneClassesVisitor;
+ class PruneClassLoaderClassesVisitor;
class VisitReferencesVisitor;
DISALLOW_COPY_AND_ASSIGN(ImageWriter);