8043239: G1: Missing post barrier in processing of j.l.ref.Reference objects

Removed all write barriers during reference processing and added explicit write barriers when iterating through the discovered list.

Reviewed-by: pliden, jmasa, tschatzl
This commit is contained in:
Bengt Rutisson 2014-06-03 10:44:36 +02:00
parent 3e5805dc08
commit 426151a22e
7 changed files with 38 additions and 96 deletions

View file

@ -864,8 +864,7 @@ void PSScavenge::initialize() {
true, // mt discovery
(int) ParallelGCThreads, // mt discovery degree
true, // atomic_discovery
NULL, // header provides liveness info
false); // next field updates do not need write barrier
NULL); // header provides liveness info
// Cache the cardtable
BarrierSet* bs = Universe::heap()->barrier_set();