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

Mark java.time.InstantSource and java.time.Clock as thread safe. #4724

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

copybara-service[bot]
Copy link
Contributor

@copybara-service copybara-service bot commented Dec 12, 2024

Mark java.time.InstantSource and java.time.Clock as thread safe.

Also, annotate FakeTimeSource with @ThreadSafe to fix breakages caused by marking InstantSource as thread safe. TimeSource and common.time.Clock should also be annotated directly, but we would need to fix or suppress all existing implementations of them first, so I left a TODO instead.

Context: http://yaqs/6914049073339170816

Tested:
TAP for global presubmit queue
[]

@copybara-service copybara-service bot force-pushed the test_704861086 branch 5 times, most recently from 2972fb0 to 133f835 Compare December 13, 2024 18:20
@copybara-service copybara-service bot changed the title Mark java.time.InstantSource as thread safe. Mark java.time.InstantSource and java.time.Clock as thread safe. Dec 13, 2024
Also, annotate `FakeTimeSource` with `@ThreadSafe` to fix breakages caused by marking `InstantSource` as thread safe. `TimeSource` and `common.time.Clock` should also be annotated directly, but we would need to fix or suppress all existing implementations of them first, so I left a TODO instead.

Context: http://yaqs/6914049073339170816

Tested:
    TAP for global presubmit queue
    []
PiperOrigin-RevId: 705936781
@copybara-service copybara-service bot merged commit 83634a5 into master Dec 13, 2024
@copybara-service copybara-service bot deleted the test_704861086 branch December 13, 2024 19:02
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.

1 participant