RFR(s): 8198267: Allow GCId::current_raw() calls from non-NamedThreads

Per Liden per.liden at oracle.com
Mon Feb 19 13:08:14 UTC 2018

Got some off-line feedback from StefanK. After some discussions we 
decided to also make the following changes:

1) Renamed current_raw() to current_or_undefined()
2) Replaces a few uses of current_raw() with currentNamedThread->gc_id()
3) Removes the special constructor for AbstractGangTask, which is no 
longer needed. With the new semantics of current_or_undefined() the 
default constructor can be used by G1PretouchTask.

Webrev: http://cr.openjdk.java.net/~pliden/8198267/webrev.1/


On 02/16/2018 02:30 PM, Per Liden wrote:
> Patch to allow GCId::current_raw() calls from non-NamedThreads. This is 
> needed when, for example, an Access barrier executed by a Java thread 
> calls into GC-code.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8198267
> Webrev: http://cr.openjdk.java.net/~pliden/8198267/webrev.0/
> /Per

More information about the hotspot-gc-dev mailing list