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

Drop MemoryLayout::map

    XMLWordPrintable

Details

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

    Description

      The MemoryLayout::map method is an attempt at defining transformation on layouts. Unfortunately, this way of transforming layouts is very limited, as it only allows to replace one layout with another in a location at a time.

      As such, it is not possible, for instance, to define a global layout transformation which e.g. flips the endianness of all value layouts nested in a given layout.

      It would be better to omit this method from the API, as it takes a good name (MemoryLayout::map) without providing the necessary flexibility.

      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: