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

Make is_MP dependent on actually available processors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 23
    • 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

            swesonga Saint Wesonga
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: