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

Add parallel threads_do variant for all threads

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      Currently we have Threads::possibly_parallel_threads_do(), which operates on all the Java threads and the VM thread, but ignores other non-Java threads. However, there are some places that want parallel iteration over all threads, which use explicit iteration and explicit use of the claim_threads_do mechanism.

      It would be better to have a function similar to possibly_parallel_threads_do that operates on all threads.

      There is a naming issue though. Perhaps possibly_parallel_oops_do should be the all-threads variant, and the restricted version should be possibly_parallel_java_threads_and_vm_thread_do, being consistent with the naming of the serial iterators.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: