Uploaded image for project: 'Swift'
  1. Swift
  2. SR-15380

Guarantees for memory layout of arrays of structs

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None

      Description

      From the discussion on https://forums.swift.org/t/the-role-of-autoreleasepool-in-swift-and-thoughts-about-memory-management-in-swift/52976:

      ...Another place where Swift seems not to have garantees is the layout of arrays of structs, but I think many people expect a certain layout for the obvious cases. ...

      I think Swift does use a sensible layout, but I do not think that there are any garantees for it.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Stefan Springer Stefan Springer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: