diff options
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index dc14c04719..58068ebbf1 100644 --- a/runtime/runtime.h +++ b/runtime/runtime.h @@ -43,6 +43,7 @@ namespace art { namespace gc { + class AbstractSystemWeakHolder; class Heap; namespace collector { class GarbageCollector; @@ -651,6 +652,9 @@ class Runtime { return env_snapshot_.GetSnapshot(); } + void AddSystemWeakHolder(gc::AbstractSystemWeakHolder* holder); + void RemoveSystemWeakHolder(gc::AbstractSystemWeakHolder* holder); + private: static void InitPlatformSignalHandlers(); @@ -887,6 +891,9 @@ class Runtime { DISALLOW_COPY_AND_ASSIGN(EnvSnapshot); } env_snapshot_; + // Generic system-weak holders. + std::vector<gc::AbstractSystemWeakHolder*> system_weak_holders_; + DISALLOW_COPY_AND_ASSIGN(Runtime); }; std::ostream& operator<<(std::ostream& os, const Runtime::CalleeSaveType& rhs); |