OSDN Git Service

Fix RecordFree to take signed parameters.
authorMathieu Chartier <mathieuc@google.com>
Thu, 20 Mar 2014 22:12:30 +0000 (15:12 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 20 Mar 2014 22:34:18 +0000 (15:34 -0700)
commit601276abdb746b03675ff945745aa936694d3439
tree94a789af17b042b079251cd212787724c2b820d6
parentafb21d16bd2267f7f34e63a5b5105f7572455d22
Fix RecordFree to take signed parameters.

RecordFree can get negative bytes allocated when background
compaction foreground transitions occur. This caused a DCHECK to
fail on debug builds. Also did some refactoring in
PreProcessReferences.

Bug: 13568814
Change-Id: I57543f1c78544a94f1d241459698b736dba8cfa8
runtime/gc/collector/mark_sweep.cc
runtime/gc/collector/mark_sweep.h
runtime/gc/heap.cc
runtime/gc/heap.h