Skip to content

Conversation

owenv
Copy link
Collaborator

@owenv owenv commented Sep 13, 2025

Add basic optional refcounting for build descriptions so that clients making repeated requests can choose to manually manage their lifecycle.

@owenv
Copy link
Collaborator Author

owenv commented Sep 13, 2025

@swift-ci test

@owenv owenv force-pushed the owenv/description-refcounting branch from 2408d9a to 3432338 Compare September 13, 2025 23:44
@owenv
Copy link
Collaborator Author

owenv commented Sep 13, 2025

@swift-ci test

@jonathanpenn
Copy link
Contributor

lgtm. Just to double check, this is ultimately only going to be a signal to the in-memory cache, right?

@owenv
Copy link
Collaborator Author

owenv commented Sep 15, 2025

@jonathanpenn this is a guarantee a build description will never be destroyed rather than a signal it shouldn't be. But it's opt-in, because it's designed primarily for usage in long-lived build servers

@owenv owenv force-pushed the owenv/description-refcounting branch from 3432338 to a40650b Compare September 15, 2025 03:03
@owenv
Copy link
Collaborator Author

owenv commented Sep 15, 2025

@swift-ci test

1 similar comment
@owenv
Copy link
Collaborator Author

owenv commented Sep 15, 2025

@swift-ci test

Fix typo

Co-authored-by: Jake Petroules <jake.petroules@apple.com>
@owenv
Copy link
Collaborator Author

owenv commented Sep 15, 2025

@swift-ci test

@owenv owenv merged commit 49c22f9 into swiftlang:main Sep 15, 2025
37 of 38 checks passed
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.

4 participants