Make is_MP dependent on actually available processors

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 23
    • Component/s: hotspot

      See https://bugs.openjdk.org/browse/JDK-8332360, especially [~dholmes] comment https://bugs.openjdk.org/browse/JDK-8332360?focusedId=14674096&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14674096

      is_MP is used to determine whether we run on a multi-processor machine. It only looks at the number of physically available cores. If one limits the number of CPUs available to the process, e.g., with taskset, it won't notice. That makes it rather difficult to easily mimic a uniprocessor system using taskset for tests.

      Task:
      - redefine is_MP to react on taskset (e.g. by making it depend on available_processors)
      - run tests and investigate any errors this shakes up
      - run tests with jtreg isolated on a single core, and fix or problemlist any errors

            Assignee:
            Saint Wesonga
            Reporter:
            Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: