Skip to content

Refactor the MemoryCreator trait to support immovable memories #9568

Closed

Description

@alexcrichton

In #9569 the memory_may_move configuration knob was plumbed into memories themselves to limit the growth of the memory. This knob is not surfaced in the custom MemoryCreator trait, however, and memories created from that trait are pessimistically assumed to always possibly move in memory. This issue is intended to track refactoring this trait to improve this situation and enable plumbing the information a bit further.

Ideally the MemoryCreator and RuntimeMemoryCreator traits are merged. After looking at this for a bit this'll require some deeper refactoring to keep things making sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions