Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Keep track of last known memory pointer in a region in DSG and use it for error trapping #8

@rowleya

Description

@rowleya

It is, in general, impossible for DSG to know if a region will overflow during DSE, since the code might have for loops etc. However, it could have a general idea as follows:

  1. Keep track of the last known write position for each region
  2. Update the last known write position whenever the pointer is set to an absolute value, a write is called or a write array is called.
  3. Raise an error if the last known write position is beyond the end of the region.

This should work reasonably well, although I am still not sure it is flawless... only testing would tell!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions