diff options
| author | 2015-07-24 18:58:57 +0000 | |
|---|---|---|
| committer | 2015-07-24 18:58:57 +0000 | |
| commit | 0fc01dd3725792a190f4c97cbdfefd2733b76e21 (patch) | |
| tree | eb713496fee4a6885a3c240309e5efc78c6774cf /compiler/driver/compiler_driver.cc | |
| parent | 2a7ea34cda9bf776339dfc7f4a22ab01f9525f2d (diff) | |
| parent | da7c650022a974be10e2f00fa07d5109e3d8826f (diff) | |
Merge "Visit class native roots from VisitReferences"
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 05705a2d31..a35f306612 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -883,8 +883,13 @@ class ClinitImageUpdate { } // java.lang.Reference visitor for VisitReferences. - void operator()(mirror::Class* /* klass */, mirror::Reference* /* ref */) const { - } + void operator()(mirror::Class* klass ATTRIBUTE_UNUSED, mirror::Reference* ref ATTRIBUTE_UNUSED) + const {} + + // Ignore class native roots. + void VisitRootIfNonNull(mirror::CompressedReference<mirror::Object>* root ATTRIBUTE_UNUSED) + const {} + void VisitRoot(mirror::CompressedReference<mirror::Object>* root ATTRIBUTE_UNUSED) const {} void Walk() SHARED_REQUIRES(Locks::mutator_lock_) { // Use the initial classes as roots for a search. |