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

Remove unreachable code in ObjectSynchronizer::exit

XMLWordPrintable

    • b26

      In ObjectSynchronizer::exit when unlocking on a monitor with LM_LIGHTWEIGHT there is a check for anonymous owner. That branch should never be taken and would indicate that something is wrong with ObjectSynchronizer::inflate or ObjectSynchronizer::exit is trying to unlock a monitor not owned by the current thread.

      This should be an assert instead.

            aboldtch Axel Boldt-Christmas
            aboldtch Axel Boldt-Christmas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: