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

Arc should not be Traceable #561

Merged
merged 1 commit into from
Mar 6, 2025
Merged

Arc should not be Traceable #561

merged 1 commit into from
Mar 6, 2025

Conversation

gmorenz
Copy link
Contributor

@gmorenz gmorenz commented Mar 6, 2025

Traceable works under the assumption that only one thread will be looking at values. The entire purpose of Arc is to share things between threads. This never works (unless the Arc could be replaced by a Rc), and won't no matter how mutability is handled.

Nothing in this crate or servo uses this impl. Let's just delete this.

Traceable works under the assumption that only one thread will be
looking at values. The entire purpose of `Arc` is to share things
between threads. This ~never works (unless the Arc could be replaced by
a Rc).

Nothing in this crate or servo uses this impl. Let's just delete this.

Signed-off-by: Greg Morenz <greg-morenz@droid.cafe>
@sagudev sagudev added this pull request to the merge queue Mar 6, 2025
Merged via the queue into servo:main with commit 99518a4 Mar 6, 2025
27 checks passed
@gmorenz gmorenz deleted the arc_trace branch March 6, 2025 04:13
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