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

Cache initial active_processor_count

    Details

    • Subcomponent:
    • Resolved In Build:
      b131

      Backports

        Description

        The active_processor_count is the number of CPUs available to the JVM process and as such can change dynamically. For some uses it may be beneficial to cache the initial active processor count and use that value for decision making - eg for GC ergonomics.

        The cached value could also be use by the os::print_cpu_info, and other routines, that want to report cpu information but may be called in a crash context and so are limited in what they attempt to do. In particular they report the number of configured processors (processor_count()) not the number of available processors (active_processor_count()), because the former is an unchanging value cached at system initialization, while the latter requires system calls that make not be possible in a crash context.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tschatzl Thomas Schatzl
                  Reporter:
                  dholmes David Holmes
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: