From 6aa3df965395566ed6a4fec4af37c2b7577992e9 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Tue, 17 Sep 2013 15:17:28 -0700 Subject: Refactor system weak sweeping, add support for modification. Required for moving collectors. Change-Id: Ib97ba4a05af1139f8d388077a15e62bcb9534855 --- runtime/runtime.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/runtime.cc') diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 477fcaf..6cb4c49 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 parsed(new ParsedOptions()); const char* boot_class_path_string = getenv("BOOTCLASSPATH"); -- cgit v1.1