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

❓️ rename_allocation via interior mutability #241

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

h3r2tic
Copy link

@h3r2tic h3r2tic commented Jul 8, 2024

Ohai, I'm not sure if this is useful to you, or a desirable change, but I thought I'd share anyway.

In our engine, we currently keep Allocations immutable, so updating their debug names isn't possible without wrapping them in some sorta mutex.

Here, I use arc-swap to allow interior mutability for the debug names.

(sorry for the noise in Cargo.toml, it got auto-formatted. I can clean it up if you're interested in the change)

@Jasper-Bekkers
Copy link
Member

Hey tom I think these changes are useful, if you have time could you rebase them on main & drop the formatting changes in Cargo.toml?

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