Skip to content

Process Memory Update - #8

Draft
jamon-bailey wants to merge 29 commits into
v0.xfrom
proc-memory-update
Draft

jamon-bailey wants to merge 29 commits into
v0.xfrom
proc-memory-update

Conversation

@jamon-bailey

Copy link
Copy Markdown
Member

Memory Hierarchy Setup

Incomplete...

jamon-bailey and others added 14 commits May 24, 2026 00:13
New member method for MemoryDescription base class that determines the validity of a memory description instance; This requires due diligence in certain parts of the memory infrastructure in order for this method to be useful
Moved the process memory allocator out of the process memory pool to a level above in the process memory core
Updated process memory subsystem elements
Renamed process memory allocator member attributes; updated diagrams
Reordered thread local memory cache member attributes
Started design of MemoryScope class
- Added memory hierarchy initialization method declaration (Incomplete: waiting for `MemoryScope` class)

- Fixed documentation placeholders
Introduces an incomplete implementation of the `MemoryScope` class. All attributes are in place but the public interface is still missing, alongside proper initialization validation and a destructor. The static root memory acquisition method is complete.
- Implemented memory hierarchy root acquisition setup machinery; called via `MemoryCore` constructor

- Moved internal functionality to anonymous namespace
Setup for live testing and debugging the `MemoryScope` class.
@jamon-bailey jamon-bailey added this to the Structural Foundations milestone Sep 26, 2026
@jamon-bailey jamon-bailey self-assigned this Sep 26, 2026
@jamon-bailey jamon-bailey added the Update An update for the main branch label Sep 26, 2026
- Note that this target won't build yet because the `FreeRegionChain` class is still incomplete, the developer executable needs that class to materialize. This will be handled following this branches merge.

- Starts ad-hoc memory scope hierarchy exercise to examine functionality

- The library is currently trying to consolidate all changes across peer branches with different focuses before continuing forward
Continued aspects of memory component designs
- Adds new `FreeRegionChain` class that disambiguates the head and tail of a chain of memory regions. The head and tail situation now lives here, where the mistake can be easily located (the mix-up would have happened at this boundary) as opposed to letting the Chevron API have two identical consecutive pointer arguments to memory functions.

- The `FreeRegionChain` class is still INCOMPLETE; the API may not be complete and the implementations location is still being debated. It is not clear if this construct will remain in the `memory_defs.hpp` header or move to its own unit.

- This class is preventing the developer executable from building because it is referenced in both the `MemoryScope` and `FreeList` classes.
- Added the non-atomic version of the initial `AtomicFreeList` class for the memory strategy classes planned just down the line. You shouldn't have to pay for what you don't need.

- The plan is to use compile-time concepts to ensure the public interfaces between the `AtomicFreeList` and `FreeList` align where appropriate. That will keep the two from drifting apart where it matters. Noooo polymorphism.
- Mocked out the planned `MemoryScope` interface but this is still INCOMPLETE; the specifics of how this type handles itself within the encompassing hierarchy is still being discussed.

- Implemented basic getter methods that have no concurrent execution concerns; others incomplete.

- Cosmetic adjustments to tab spacing (converted to 4 spaces as per the libraries source convention)
Added a `-v`/`verbose` option to the build script that emits all compiler lines for inspection during builds
Gave all Linux bash scripts execution permission
Updated git command permissions
Introduces `FreeRegionChain` which simplifies the process of handling
chains of free memory regions, and communicates that intent clearer.
Class documentation is still INCOMPLETE.
Included `<cstddef>` for size_t type
- Added `free_region_chain.hpp` to header-level includes.

- Fixed stale `FreeRegionChain` API reference in `FreeList`
implementation.
Removed old `FreeRegionChain` class declaration from memory definitions
header; new class resides in `free_region_chain.hpp`.
Swapped old `FreeRegionChain` header (`memory_defs.hpp`) for the new
location (`free_region_chain.hpp`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Update An update for the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant