OSDN Git Service

Fix stale remembered sets error.
authorMathieu Chartier <mathieuc@google.com>
Thu, 24 Jul 2014 01:45:17 +0000 (18:45 -0700)
committerMathieu Chartier <mathieuc@google.com>
Thu, 24 Jul 2014 18:00:07 +0000 (11:00 -0700)
commitc0dcf29143051cf34d6c032a7b385ac4579bd4ec
tree47211bbdf507e5661a18c2f244114309f11cfc95
parent5dc158e9b6635b6c5d3916ae4094e8886feb4580
Fix stale remembered sets error.

We were forgetting to remove the remembered set in transition to
background. This resulted in remembered sets being added for
spaces which no longer existed. This finally caused an error when
a new space happened to have the same address as the old space,
resulting in a CHECK failure.

Also tuned the number of ParallelGC to prevent spurrious failures
and removed the ParallelGC from broken tests in the make file.

Bug: 16532086
Bug: 16406852

Change-Id: I00bbcbd7daa03c867732d165be62b72e6c43bce1

(cherry picked from c5a8347ac491a5f521945d3835a322123830456b)
runtime/gc/heap.cc
test/ParallelGC/ParallelGC.java