Skip to content

Use raw pointer and allocate instead of construct for creating memory for GenericSkeletonEvent#247

Draft
bemerybmw wants to merge 3 commits intomainfrom
brem_fix_generic_skeleton
Draft

Use raw pointer and allocate instead of construct for creating memory for GenericSkeletonEvent#247
bemerybmw wants to merge 3 commits intomainfrom
brem_fix_generic_skeleton

Conversation

@bemerybmw
Copy link
Contributor

No description provided.

In this case, we want to create a type erased byte array. Construct is
used to allocate memory and instantiate a type in the allocated memory.
In this case, we only want to allocate the memory. Therefore, instead of
using construct with a dummy template type to force the correct
alignment to be used, we simply use allocate.
Since the pointer to the type erased memory buffer which is returned by
RegisterGeneric never resides in shared memory, there's no reason to not
simply use a raw pointer.
@bemerybmw bemerybmw force-pushed the brem_fix_generic_skeleton branch from 6c432df to 7f5a8c2 Compare March 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant