Skip to content

Conversation

LorrensP-2158466
Copy link
Contributor

@LorrensP-2158466 LorrensP-2158466 commented Jun 20, 2025

fixes #3967

The pr is structured in 4 commits, the first two replace the use of Id with Ref objects. The third commit refactors the declare_id! macro into a macro that creates these Ref objects for us. The last commit removes the usage of SynchronisationObjects.

@LorrensP-2158466
Copy link
Contributor Author

@rustbot ready

@rustbot rustbot added the S-waiting-on-review Status: Waiting for a review to complete label Jun 20, 2025
Copy link
Member

@RalfJung RalfJung left a comment

Choose a reason for hiding this comment

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

Thanks a lot! Looks good overall, except I don't think this macro is worth it -- sorry.

@RalfJung
Copy link
Member

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: Waiting for the PR author to address review comments and removed S-waiting-on-review Status: Waiting for a review to complete labels Jun 28, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jun 28, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@LorrensP-2158466
Copy link
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Waiting for a review to complete and removed S-waiting-on-author Status: Waiting for the PR author to address review comments labels Jun 29, 2025
@RalfJung
Copy link
Member

RalfJung commented Jun 29, 2025

Ah, you force-pushed... please avoid that if at all possible (except when I ask you to do it), it makes it a lot harder to track what happened since the last review. (This is a pretty fatal flaw in Github, but unless they eventually get better at dealing with force-pushes we all have to work around it manually.)

@RalfJung
Copy link
Member

In this case you probably had to force-push to remove that macro commit, but you did not have to incorporate any of the recent changes in master. git rebase --keep-base helps in that case.

@RalfJung
Copy link
Member

The existing concerns are resolved, but you added a bunch of new changes I didn't ask for so there's new concerns.^^
@rustbot author

@rustbot rustbot added S-waiting-on-author Status: Waiting for the PR author to address review comments and removed S-waiting-on-review Status: Waiting for a review to complete labels Jun 29, 2025
@LorrensP-2158466
Copy link
Contributor Author

Ah, you force-pushed... please avoid that if at all possible (except when I ask you to do it), it makes it a lot harder to track what happened since the last review.

Ah shit, sorry. I'll remember that!

@LorrensP-2158466
Copy link
Contributor Author

Tests should be fine, the latest changes were just some refactorings.

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Waiting for a review to complete and removed S-waiting-on-author Status: Waiting for the PR author to address review comments labels Jul 1, 2025
@RalfJung
Copy link
Member

RalfJung commented Jul 1, 2025

This looks great, thanks! Please squash the commits using ./miri squash. Then write @rustbot ready after you force-pushed the squashed PR.

@rustbot author

@rustbot rustbot added S-waiting-on-author Status: Waiting for the PR author to address review comments and removed S-waiting-on-review Status: Waiting for a review to complete labels Jul 1, 2025
@LorrensP-2158466
Copy link
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Waiting for a review to complete and removed S-waiting-on-author Status: Waiting for the PR author to address review comments labels Jul 1, 2025
@RalfJung RalfJung enabled auto-merge July 1, 2025 12:25
@RalfJung RalfJung added this pull request to the merge queue Jul 1, 2025
Merged via the queue into rust-lang:master with commit e607b36 Jul 1, 2025
13 checks passed
@LorrensP-2158466 LorrensP-2158466 deleted the remove-leaky-syncobj branch July 1, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Waiting for a review to complete
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get rid of IDs for synchronization primitives, make pthread shims not leaky
3 participants