diff options
author | 2015-07-15 14:24:07 -0700 | |
---|---|---|
committer | 2015-07-15 14:57:37 -0700 | |
commit | 8118781ebc9659f806716c451bdb3fe9b77ae32b (patch) | |
tree | 47d9e968946dabe4099c5e1af506e1bcd6eaee58 /runtime/gc/reference_processor.cc | |
parent | e5abf0702555f9f4284a96e923f5c331561974e4 (diff) |
Address some GC comments
Follow-up from:
https://android-review.googlesource.com/#/c/159650/
Change-Id: Id14f29b4ce5b70b63fcb3e74f8503ae60a3ae444
Diffstat (limited to 'runtime/gc/reference_processor.cc')
-rw-r--r-- | runtime/gc/reference_processor.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc index 256cdd2b7a..39ba7432a1 100644 --- a/runtime/gc/reference_processor.cc +++ b/runtime/gc/reference_processor.cc @@ -138,7 +138,8 @@ void ReferenceProcessor::ProcessReferences(bool concurrent, TimingLogger* timing 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) { |