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

JVMCI lacks synchronization when reading MDOs

    Details

      Description

      The _extra_data_lock is not held when reading things from the extra data section of MDOs through JVMCI. That can cause races where entries in the extra data section seemingly points at random garbage memory, due to entries being concurrently added, and removed.

      Further on, JVMCI, unlike ciEnv, does not acquire a stable snapshot of the MDO during a compilation. That means that entries can get removed and cleared throughout the compilation, at any safepoint poll, due to class unloading. That applies even for entries not in the extra data section of the MDO.

        Attachments

          Activity

            People

            • Assignee:
              kvn Vladimir Kozlov
              Reporter:
              eosterlund Erik Ă–sterlund
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: