Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enhancement suggestion: gc.disable() and heap lock #1275

Closed
@peterhinch

Description

@peterhinch

Would it be feasible, when gc.disable() is issued, to unlock the heap? Clearly it would need to be re-locked when gc.enable() was issued and for the duration of gc.collect(). The purpose would be to enable a user to write interrupt callbacks which used the heap. It would be their responsibility to disable the relevant interrupts before issuing gc.collect() or gc.enable().

Envisaged use case: developers of control systems wishing to run the principal control loop as a timer callback for a well-defined update rate. Many filtering algorithms depend on floating point operations.

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