src/hotspot/share/gc/parallel/psParallelCompact.cpp
changeset 55740 b3ff56f955c8
parent 55576 4d193e40e7af
child 57662 f81dbe27a7b1
equal deleted inserted replaced
55739:ba2bd51ce67e 55740:b3ff56f955c8
  2125     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::management));
  2125     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::management));
  2126     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::system_dictionary));
  2126     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::system_dictionary));
  2127     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::class_loader_data));
  2127     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::class_loader_data));
  2128     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::jvmti));
  2128     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::jvmti));
  2129     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::code_cache));
  2129     q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::code_cache));
  2130     JVMCI_ONLY(q->enqueue(new MarkFromRootsTask(MarkFromRootsTask::jvmci));)
       
  2131 
  2130 
  2132     if (active_gc_threads > 1) {
  2131     if (active_gc_threads > 1) {
  2133       for (uint j = 0; j < active_gc_threads; j++) {
  2132       for (uint j = 0; j < active_gc_threads; j++) {
  2134         q->enqueue(new StealMarkingTask(terminator.terminator()));
  2133         q->enqueue(new StealMarkingTask(terminator.terminator()));
  2135       }
  2134       }
  2214   WeakProcessor::oops_do(&oop_closure);
  2213   WeakProcessor::oops_do(&oop_closure);
  2215 
  2214 
  2216   CodeBlobToOopClosure adjust_from_blobs(&oop_closure, CodeBlobToOopClosure::FixRelocations);
  2215   CodeBlobToOopClosure adjust_from_blobs(&oop_closure, CodeBlobToOopClosure::FixRelocations);
  2217   CodeCache::blobs_do(&adjust_from_blobs);
  2216   CodeCache::blobs_do(&adjust_from_blobs);
  2218   AOT_ONLY(AOTLoader::oops_do(&oop_closure);)
  2217   AOT_ONLY(AOTLoader::oops_do(&oop_closure);)
  2219 
       
  2220   JVMCI_ONLY(JVMCI::oops_do(&oop_closure);)
       
  2221 
  2218 
  2222   ref_processor()->weak_oops_do(&oop_closure);
  2219   ref_processor()->weak_oops_do(&oop_closure);
  2223   // Roots were visited so references into the young gen in roots
  2220   // Roots were visited so references into the young gen in roots
  2224   // may have been scanned.  Process them also.
  2221   // may have been scanned.  Process them also.
  2225   // Should the reference processor have a span that excludes
  2222   // Should the reference processor have a span that excludes