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

Drop MemoryLayout::map

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: