RFR(xs): 8134744: WorkerThread::id() should match GangWorker's worker_id

Jon Masamitsu jon.masamitsu at oracle.com
Mon Aug 31 18:35:14 UTC 2015


Per,

A GangWorker is given an "uint id" when it is
created.  If it is going to be reset the id whenever it
does work, should it have its own "id"?

Jon

On 08/31/2015 07:16 AM, Per Liden wrote:
> Hi,
>
> This is a follow up patch to JDK-8134749 (SoftReferences declared dead 
> too early), which makes sure WorkerThread::id() and match GangWorker's 
> worker_id always match. This allows them to be used interchangeably, 
> which is both convenient and removes a potential source for bugs (it's 
> easy to assumed they are the same). This change should not affect any 
> existing code.
>
> Webrev: http://cr.openjdk.java.net/~pliden/8134744/webrev.0/
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8134744
>
> Testing: jprt
>
> /Per
>




More information about the hotspot-gc-dev mailing list