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

Assertion failure - state == EINVAL - from cond_timedwait on linux when doing Parker::park

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b96
    • CPU:
      generic
    • OS:
      generic

      Description

      With fastdebug builds an assertion failure is occurring when doing a Parker::park operation with a relative timeout, because cond_timed_wait is returning EINVAL indicating an invalid timespec. Inspection of the timespec structure shows the tv_nsec field has the value 1000000000 which is one more than the allowed maximum of 999999999.

      In product builds this has the effect of causing a spurious unpark, but that can happen in any case and so higher-level code already accounts for it and so there is no harm.

        Attachments

          Activity

            People

            • Assignee:
              dholmes David Holmes
              Reporter:
              dholmes David Holmes
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: