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

Investigate ways to make handoff-like operation more explicit

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools

      Description

      In the current memory segment API, there are some regular wither methods (withAccessModes, asSlice) which simply return a new memory segment, with different properties.

      Then we also have methods like withCleanupAction, withOwnerThread, registerCleaner which looks like wither methods, but in reality they side effect the current segment, by rendering it invalid.

      This is, often a source of confusion for clients. The fact that handing off a segment is a terminal operation should be more explicit in the API.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mcimadamore Maurizio Cimadamore
              Reporter:
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: