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

VtableStubs::find_stub is not appropriately protected by VtableStubs_lock

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b24

      Backports

        Description

        In VtableStubs::find_stub we first perform a lookup in the table to check for already created stubs under the VtableStubs_lock, then if not found we create a new stub without the lock held, and then insert it under the VtableStubs_lock without checking for entries inserted between the lookup and insertion.
        If the VtableStubs_lock is to protect the table (which is the intention), the lock should not be unlocked before lookup and insert.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  eosterlund Erik Österlund
                  Reporter:
                  eosterlund Erik Österlund
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: