Skip to content

Migrate all collections to GC #85

Description

@jonnyboyC

Fundamental our current strategy for tracking VM size is extremely error prone. The Allocator methods .grow and shrink are poor and slows ways to attempt to capture resizing for structures that are simply not owned by the VM.

I think we should approach this in a few steps.

  • Remove .grow and .shrink and stop pretending that we are actually capturing heap resizing for collections outside the stack
  • Replace usages of boxed slices with the existing GcArray
  • Create replacements for Vec, HashSet and HashMap. It will be easier to correctly track size by simply preventing resizing instead requesting it from the GC.

Activity

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