diff options
| author | 2015-08-18 13:54:21 -0700 | |
|---|---|---|
| committer | 2015-08-18 16:11:21 -0700 | |
| commit | 059ef3ddb2088f926ac452889e0953fdcd646a5e (patch) | |
| tree | 36067457d7e4aba11be908ddd235734d29b7c4f2 /compiler/driver/compiler_driver.cc | |
| parent | f71ad9ede9ae322a897e8fe407208dc35c5dee65 (diff) | |
Always visit object class from VisitReferences
We don't want to unload classes which have instances.
Slight increase in CMS GC time from ~6.5s to ~7.3s on
EvaluateAndApplyChanges.
Bug: 22720414
Change-Id: I467ff9c9d55163d2a90b999aef3bdd7b3f648bac
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index fa4667ec97..fa25a17481 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -1109,7 +1109,7 @@ class ClinitImageUpdate { // If it is not a DexCache, visit all references. mirror::Class* klass = object->GetClass(); if (klass != dex_cache_class_) { - object->VisitReferences<false /* visit class */>(*this, *this); + object->VisitReferences(*this, *this); } } |