commit | 8118781ebc9659f806716c451bdb3fe9b77ae32b | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Wed Jul 15 14:24:07 2015 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Wed Jul 15 14:57:37 2015 -0700 |
tree | 47d9e968946dabe4099c5e1af506e1bcd6eaee58 | |
parent | e5abf0702555f9f4284a96e923f5c331561974e4 [diff] [blame] |
Address some GC comments Follow-up from: https://android-review.googlesource.com/#/c/159650/ Change-Id: Id14f29b4ce5b70b63fcb3e74f8503ae60a3ae444
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc index 256cdd2..39ba743 100644 --- a/runtime/gc/reference_processor.cc +++ b/runtime/gc/reference_processor.cc
@@ -138,7 +138,8 @@ if (concurrent) { StartPreservingReferences(self); } - // TODO: Add smarter logic for preserving soft references. + // TODO: Add smarter logic for preserving soft references. The behavior should be a conditional + // mark if the SoftReference is supposed to be preserved. soft_reference_queue_.ForwardSoftReferences(collector); collector->ProcessMarkStack(); if (concurrent) {