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

Prevent copying of ArenaAllocator #97935

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Prevent copying of ArenaAllocator #97935

merged 1 commit into from
Jul 16, 2024

Conversation

smanna12
Copy link
Contributor

@smanna12 smanna12 commented Jul 7, 2024

This patch removes copy constructor and assignment operator from ArenaAllocator class to prevent resource duplication and ensure it remains non-copyable as per design intent.

This patch removes copy constructor and assignment operator from ArenaAllocator class
to prevent resource duplication and ensure it remains non-copyable as per design intent.
@smanna12 smanna12 requested a review from tahonermann July 7, 2024 03:02
Copy link
Contributor

@tahonermann tahonermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and right, Thanks @smanna12!

@smanna12
Copy link
Contributor Author

Thank you @tahonermann for reviews!

@smanna12 smanna12 merged commit 3706c12 into llvm:main Jul 16, 2024
8 checks passed
sayhaan pushed a commit to sayhaan/llvm-project that referenced this pull request Jul 16, 2024
Summary:
This patch removes copy constructor and assignment operator from
ArenaAllocator class to prevent resource duplication and ensure it
remains non-copyable as per design intent.

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D59822443
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary:
This patch removes copy constructor and assignment operator from
ArenaAllocator class to prevent resource duplication and ensure it
remains non-copyable as per design intent.

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60251510
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.

2 participants