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

chore(common): Use Box::leak rather than mem::forget #180

Merged
merged 1 commit into from
May 26, 2024

Conversation

clabby
Copy link
Collaborator

@clabby clabby commented May 23, 2024

Overview

Uses Box::leak to ensure that the files that are constructed from raw
file descriptors are kept alive for the static lifetime of the program,
rather than mem::forget.

Copy link
Collaborator Author

clabby commented May 23, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @clabby and the rest of your teammates on Graphite Graphite

@clabby clabby added A-common Area: kona-common crate K-chore Kind: chore labels May 23, 2024
@clabby clabby self-assigned this May 23, 2024
Uses `Box::leak` to ensure that the files that are constructed from raw
file descriptors are kept alive for the static lifetime of the program,
rather than `mem::forget`.
@clabby clabby changed the base branch from cl/new-preimage-key to main May 26, 2024 17:09
@clabby clabby added this pull request to the merge queue May 26, 2024
Merged via the queue into main with commit 6766a7d May 26, 2024
13 checks passed
@clabby clabby deleted the cl/leak-box-native-io branch May 26, 2024 17:16
This was referenced May 26, 2024
This was referenced Jun 3, 2024
This was referenced Jun 11, 2024
@github-actions github-actions bot mentioned this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-common Area: kona-common crate K-chore Kind: chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants