Skip to content

MemoryError/fallible allocations #3493

Closed

Description

@youknowone

Feature

Rust 1.57 added Fallible allocation.(try_reserve)
It will be easy to implement MemoryError than before

Activity

  1. coolreader18 commented on Dec 3, 2021

    @coolreader18
    Member

    Well I'm working on this now I suppose 😁 I was gonna just test some stuff out for a bit but now I've been doing it for an hour and I'm on the way to an implementation lol

  2. changed the title [-]MemoryError[/-] [+]MemoryError/fallible allocations[/+] on Dec 4, 2021
  3. coolreader18 commented on Dec 4, 2021

    @coolreader18
    Member

    This could probably serve as a tracking issue of things to switch over to fallible allocations, with checkboxes and stuff (eventually), since this should be a fairly easy thing for people to work on as a first contribution (hopefully).

  4. youknowone commented on Oct 6, 2026

    @youknowone
    MemberAuthor

    MemoryError is implemented: PyMemoryError with a freelist, VirtualMachine::new_memory_error, and fallible allocation paths that use try_reserve / no_memory_error instead of aborting.

    Closing.

    — commented by Grok 4.6

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