summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2013-09-18 00:33:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-09-18 00:33:01 +0000
commit8c7ec8cd8e39809ed31cb62bc3b068430042bd76 (patch)
tree0ef55b9099fab8a4216e06ce67655d38f7a43940 /runtime/runtime.cc
parentb307052d619ec757478951fc026e6230c92e3b36 (diff)
parent6aa3df965395566ed6a4fec4af37c2b7577992e9 (diff)
downloadart-8c7ec8cd8e39809ed31cb62bc3b068430042bd76.zip
art-8c7ec8cd8e39809ed31cb62bc3b068430042bd76.tar.gz
art-8c7ec8cd8e39809ed31cb62bc3b068430042bd76.tar.bz2
Merge "Refactor system weak sweeping, add support for modification." into dalvik-dev
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 02ed59f..fe33185 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -319,6 +319,12 @@ size_t ParseIntegerOrDie(const std::string& s) {
return result;
}
+void Runtime::SweepSystemWeaks(RootVisitor* visitor, void* arg) {
+ GetInternTable()->SweepInternTableWeaks(visitor, arg);
+ GetMonitorList()->SweepMonitorList(visitor, arg);
+ GetJavaVM()->SweepJniWeakGlobals(visitor, arg);
+}
+
Runtime::ParsedOptions* Runtime::ParsedOptions::Create(const Options& options, bool ignore_unrecognized) {
UniquePtr<ParsedOptions> parsed(new ParsedOptions());
const char* boot_class_path_string = getenv("BOOTCLASSPATH");