summaryrefslogtreecommitdiff
path: root/runtime/class_table.h
diff options
context:
space:
mode:
author Alexey Grebenkin <a.grebenkin@samsung.com> 2018-02-01 19:09:59 +0300
committer Artem Udovichenko <artem.u@samsung.com> 2018-03-13 17:01:21 +0300
commitbe4c2bd892bd167a50b4dfa7133e70a809197698 (patch)
tree150898533382fb98c160e265a5f31f66ded754f0 /runtime/class_table.h
parentbfce631960ae2ab381180beb55cf34ab3b445aaa (diff)
Fix dangling SingleImplementations left after class unloading
Test: make test-art-host, manual using sample code bug: 73143991 Change-Id: I4d56b39c69d4ed60266a8b90b9e9d18fba7b8227
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r--runtime/class_table.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/class_table.h b/runtime/class_table.h
index 52e9f82396..3e90fe2768 100644
--- a/runtime/class_table.h
+++ b/runtime/class_table.h
@@ -190,11 +190,11 @@ class ClassTable {
REQUIRES_SHARED(Locks::mutator_lock_);
// Stops visit if the visitor returns false.
- template <typename Visitor>
+ template <typename Visitor, ReadBarrierOption kReadBarrierOption = kWithReadBarrier>
bool Visit(Visitor& visitor)
REQUIRES(!lock_)
REQUIRES_SHARED(Locks::mutator_lock_);
- template <typename Visitor>
+ template <typename Visitor, ReadBarrierOption kReadBarrierOption = kWithReadBarrier>
bool Visit(const Visitor& visitor)
REQUIRES(!lock_)
REQUIRES_SHARED(Locks::mutator_lock_);