From a91a4bc1f8960f64c5f7e4616d46e21b8e1bfba2 Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Fri, 13 Jun 2014 16:44:55 -0700 Subject: Add read barriers for the class and the intern tables. Add read barriers for the strong roots in the intern table and the (strong) roots in the class table to make possible concurrent scanning of them. Bug: 12687968 Change-Id: If6edc33a37e65a8494e66dc3b144138b1530367f --- runtime/indirect_reference_table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/indirect_reference_table.cc') diff --git a/runtime/indirect_reference_table.cc b/runtime/indirect_reference_table.cc index 756ac9606e..98e1d21d93 100644 --- a/runtime/indirect_reference_table.cc +++ b/runtime/indirect_reference_table.cc @@ -280,7 +280,7 @@ void IndirectReferenceTable::Dump(std::ostream& os) const { // We need a read barrier if weak globals. Since this is for // debugging where performance isn't top priority, we // unconditionally enable the read barrier, which is conservative. - obj = ReadBarrier::BarrierForWeakRoot(root); + obj = ReadBarrier::BarrierForRoot(root); entries.push_back(obj); } } -- cgit v1.2.3