Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement BumpAllocator #1732

Closed
FerdinandSpitzschnueffler opened this issue Oct 12, 2022 · 0 comments · Fixed by #1820
Closed

Implement BumpAllocator #1732

FerdinandSpitzschnueffler opened this issue Oct 12, 2022 · 0 comments · Fixed by #1820
Assignees
Labels
enhancement New feature globex refactoring Refactor code without adding features
Milestone

Comments

@FerdinandSpitzschnueffler
Copy link
Contributor

Brief feature description

Currently we have (at least) two classes to allocate memory: posix::Allocator and cxx::static_storage, where cxx::static_storage is basically posix::Allocator but with internal storage. To have a more generic and reusable allocator, we can remove the internal storage from cxx::static_storage, merge it with posix::Allocator and rename it to BumpAllocator (as known in literature). This allocator class can use the unintialized_array (#1614) underneath.

For the storable_function, this means that the storage needs then to be moved to the storable_function and the BumpAllocator needs to be initialized with a pointer to this storage.

@FerdinandSpitzschnueffler FerdinandSpitzschnueffler added enhancement New feature refactoring Refactor code without adding features globex labels Oct 12, 2022
@FerdinandSpitzschnueffler FerdinandSpitzschnueffler added this to the High prio milestone Oct 12, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 17, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 21, 2022
Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 22, 2022
Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 29, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 30, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Nov 30, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 1, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 5, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 6, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 6, 2022
Change return type to expected, remove option to finalize allocation

Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 6, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 6, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
Change return type to expected, remove option to finalize allocation

Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Dec 7, 2022
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
Change return type to expected, remove option to finalize allocation

Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
Change return type of SharedMemoryObject::allocate to expected,
introduce error enums

Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
…llocate

Correct required storage size, rename some variables

Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 16, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
Change return type to expected, remove option to finalize allocation

Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
Change return type of SharedMemoryObject::allocate to expected,
introduce error enums

Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
…llocate

Correct required storage size, rename some variables

Signed-off-by: Marika Lehmann <[email protected]>
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
FerdinandSpitzschnueffler added a commit to ApexAI/iceoryx that referenced this issue Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature globex refactoring Refactor code without adding features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant