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

Concurrency problem in PcDesc cache

XMLWordPrintable

    • b26
    • Not verified


        The entries of the PcDesc cache in nmethods are not declared as volatile, but they are accessed and modified by several threads concurrently.
        Some compilers (namely xlC 12 on AIX) duplicate some memory accesses to non-volatile fields.
        In this case, this has led to the situation that a thread had successfully matched a pc in the cache,
        but returned the reloaded value which was already overwritten by another thread.

        We consider this fix critical as it leads to severe errors in VMs built on AIX with xlC12.
        For example jvm2008/sunflow does a wrong resolve and then throws an incompatible
        class change error. This happens about every second try to run this benchmark.

              goetz Goetz Lindenmaier
              goetz Goetz Lindenmaier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: