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

Fix -Wzero-as-null-pointer-constant warnings involving PTHREAD_MUTEX_INITIALIZER

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • None
    • b11

      There are a few places where we initialize a pthread_mutex_t using PTHREAD_MUTEX_INITIALIZER. On at least some platforms there are literal zeros in that initializer macro that are used to initialize pointer-typed members in the pthread_mutex_t struct, triggering -Wzero-as-null-pointer-constant warnings when enabled.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: