RFR: 8202649: Move the Parallel GC specific task creation functions out of Threads
Stefan Karlsson
stefan.karlsson at oracle.com
Mon May 7 15:12:53 UTC 2018
On 2018-05-07 16:44, Erik Helin wrote:
> On 05/07/2018 04:02 PM, Stefan Karlsson wrote:
>> Hi all,
>>
>> Please review this patch to move the Parallel GC specific task
>> creation functions out of Threads.
>>
>> http://cr.openjdk.java.net/~stefank/8202649/webrev.01/
>
> Looks good to me, thanks for taking care of this, Reviewed!
Thanks, Erik!
StefanK
>
> Erik
>
>> There exist (at least) two available functions to iterate over a
>> subset of threads:
>> static void non_java_threads_do(ThreadClosure* tc);
>> static void threads_do(ThreadClosure* tc);
>>
>> This patch extends this set and adds:
>> static void java_threads_do(ThreadClosure* tc);
>> static void java_threads_and_vm_thread_do(ThreadClosure* tc);
>>
>> The latter is used to implement the create_thread_roots_tasks and
>> create_thread_roots_marking_tasks inside the Parallel GC code.
>>
>> Thanks,
>> StefanK
More information about the hotspot-dev
mailing list