RFR (S): JDK-8076225: Move the thread claim parity from SharedHeap to Thread
bengt.rutisson at oracle.com
Mon Mar 30 13:45:47 UTC 2015
On 2015-03-30 15:40, Jesper Wilhelmsson wrote:
> Looks good.
> I assume you count yourself as a Reviewer(?)
Yes, so unless anyone else looks at this and complains I'll push it
> Bengt Rutisson skrev den 30/3/15 13:27:
>> Hi everyone,
>> This patch was contributed by Mikael Gerdin, I'm mostly just
>> shepherding this
>> patch in to the repo.
>> From the bug report:
>> The thread claim parity is used to parallelize the scanning of root
>> in the
>> JavaThreads. This was placed in SharedHeap, but used by the Thread class
>> (Threads::possibly_parallel_oops_do()). Moving this claiming state
>> into the
>> Thread class will collect the state information and the usage in one
>> place. It
>> will also anther step towards eventually being able to remove
>> Apart from just moving the claiming state, Mikael also added an
>> assert that
>> verifies that all Java threads have the correct parity after a GC.
>> This is to
>> quickly find out if anybody forgets to handle the Java threads during
>> processing at some point.
More information about the hotspot-gc-dev