Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202649

Move the Parallel GC specific task creation functions out of Threads

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 11
    • None
    • hotspot
    • None
    • gc
    • b13

    Description

      This code should be moved into gc/parallel:
      -#if INCLUDE_PARALLELGC
      -// Used by ParallelScavenge
      -void Threads::create_thread_roots_tasks(GCTaskQueue* q) {
      - ALL_JAVA_THREADS(p) {
      - q->enqueue(new ThreadRootsTask(p));
      - }
      - q->enqueue(new ThreadRootsTask(VMThread::vm_thread()));
      -}
      -
      -// Used by Parallel Old
      -void Threads::create_thread_roots_marking_tasks(GCTaskQueue* q) {
      - ALL_JAVA_THREADS(p) {
      - q->enqueue(new ThreadRootsMarkingTask(p));
      - }
      - q->enqueue(new ThreadRootsMarkingTask(VMThread::vm_thread()));
      -}
      -#endif // INCLUDE_PARALLELGC

      Attachments

        Activity

          People

            stefank Stefan Karlsson
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: