diff options
| author | 2016-06-10 17:22:48 -0700 | |
|---|---|---|
| committer | 2016-06-13 13:57:34 -0700 | |
| commit | 7a62e6728463237684d3d9834d81bd7bba7ab197 (patch) | |
| tree | 7f53e92a3303475cb8c164d98274d465bd32ef00 /runtime/mirror/class.h | |
| parent | 1e5dda549c11d02aff51f132760dd693e351ce85 (diff) | |
Propagate the read barrier option to Class::VisitNativeRoots.
Propagate the read barrier option from Object::VisitReferences to
Class::VisitNativeRoots.
This is a step toward the GC thread avoiding graying objects (and
reducing dirty pages) in the immune spaces.
Bug: 12687968
Change-Id: I29c4126a4ad4c40e63a934e62451fb3fb36aad43
Diffstat (limited to 'runtime/mirror/class.h')
| -rw-r--r-- | runtime/mirror/class.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index 8c20fa680f..5235a3e8df 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -1156,7 +1156,7 @@ class MANAGED Class FINAL : public Object { // Visit native roots visits roots which are keyed off the native pointers such as ArtFields and // ArtMethods. - template<class Visitor> + template<ReadBarrierOption kReadBarrierOption = kWithReadBarrier, class Visitor> void VisitNativeRoots(Visitor& visitor, size_t pointer_size) SHARED_REQUIRES(Locks::mutator_lock_); |