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

Replace mutually exclusive lists with concurrent alternatives

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 14
    • Fix Version/s: 15
    • Component/s: hotspot
    • Subcomponent:
      jfr
    • Resolved In Build:
      b27

      Description

      The basic JFR data structure used to keep memory buffers are currently doubly-linked and are accessed mutually exclusive on writes. This can lead to stalls in certain situations where the lists are heavily traversed for space. This is especially the case when writing larger-than thread local sized events, which are rare in practice but there are currently some tests that provoke this situation. This can cause the VM to have to wait a long time to reach a safepoint.

      A mostly concurrent, although not necessarily non-blocking, implementation could avoid this bottleneck and improve overall levels of concurrency.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mgronlun Markus Grönlund
              Reporter:
              mgronlun Markus Grönlund
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: