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

IOVecWrapper should be changed to be TerminatingThreadLocal

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 23
    • None
    • core-libs
    • b06

    Description

      Scatter/gather ops use a thread-local native iovec and a cleaner to deallocate sometime after the thread has terminated. The thread local is currently a carrier-thread-local so usage by virtual threads must be careful to not park/yield with a reference. Change in progress to support monitors increase the risk as scatter/gather ops may need to allocate direct buffers after acquiring the iovec and must may park when the direct buffer limit is reached and the thread needs to wait for reference processing.

      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: