Skip to content

Correct the behavior of PoolAllocator according to implementation of our internal allocator - #9152

Open
TreeHunter9 wants to merge 1 commit into
FirebirdSQL:masterfrom
TreeHunter9:master_correct_std_allocator_trait
Open

TreeHunter9 wants to merge 1 commit into
FirebirdSQL:masterfrom
TreeHunter9:master_correct_std_allocator_trait

Conversation

@TreeHunter9

Copy link
Copy Markdown
Contributor

std::allocator_trait implementation was not inline with how our internal allocator works. All assignment and swap operations must take into account which allocator is being used, so that we do not accidentally move data into a new object whose lifetime exceeds that of the pool to which the data is bound.

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