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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • hotspot
    • b96
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: