Prevent first resource cleanup in confined arena from escaping

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      Because of the linked list structure used for the ResourceList implementation, and the code that uses a while-loop to free elements in the list, memory segments allocated in a confined arena can currently not be scalar replaced.

      While it doesn't seem possible to completely avoid allocations from escaping in this case (https://bugs.openjdk.org/browse/JDK-8345262) we can at least prevent the first allocation in a confined arena from escaping, by using a separate field to store just the first element in the list.

            Assignee:
            Jorn Vernee
            Reporter:
            Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: