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

Revert semantic of session accessors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • None
    • repo-panama
    • tools

    Description

      In an attempt to make memory segments more securable, we have tweaked session accessors to return non-closeable views.

      While this effectively prevents clients from closing a session if they only have a memory segment, which might be desirable in some cases, in the general case, and especially in the case of one-off memory segments, associated with a single scope, going down this path is problematic, and introduce asymmetries in the API.

      At the same time, close() is just one of the things that an API might want to protect against; clients might allocate memory in the API scope, or make it non-closeable by adding a close action that lasts forever.

      In other words, the measures we took harm some use cases without achieving the desired effects of making memory segments more shareable across clients.

      Attachments

        Issue Links

          Activity

            People

              mcimadamore Maurizio Cimadamore
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: