Repository navigation
Process Memory Update - #8
Draft
jamon-bailey wants to merge 29 commits into
Draft
jamon-bailey wants to merge 29 commits into
jamon-bailey wants to merge 29 commits into
Conversation
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
…Chevron into proc-memory-update
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.
- 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`)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Memory Hierarchy Setup
Incomplete...