hotspot/src/share/vm/runtime/thread.cpp
// Used by Parallel Old
void Threads::create_thread_roots_marking_tasks(GCTaskQueue* q) {
{- -------------------------------------------
(1) 各 JavaThread に対応する ThreadRootsMarkingTask をキューに追加
(JavaThread の個数分だけの ThreadRootsMarkingTask が登録される)
---------------------------------------- -}
ALL_JAVA_THREADS(p) {
q->enqueue(new ThreadRootsMarkingTask(p));
}
{- -------------------------------------------
(1) 最後に VMThread に対応する ThreadRootsMarkingTask をキューに追加.
---------------------------------------- -}
q->enqueue(new ThreadRootsMarkingTask(VMThread::vm_thread()));
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.