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

_mutex_array not initialized properly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Introduced In Build:
      b45
    • Introduced In Version:
      9
    • CPU:
      generic
    • OS:
      generic

      Description

      8047290 changed mutexLocker.cpp's def macro to have _mutex_array[_num_mutex] instead of _mutex_array[_num_mutex++], which means the array and _num_mutex aren't initialized properly.

      This breaks print_owned_locks_on_error and would manifest as a lie when provoking a vmError when global VM locks are held.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                redestad Claes Redestad
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: