Skip to content

Conversation

@tanderson-ld
Copy link
Contributor

Summary

O11Y-417

How did you test this change?

Bench testing at the moment. There is a story in the epic to add e2e tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unmodified vendored file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unmodified vendored file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still investigating compilation issue related to bytebuddy and exclusion of okhttp-jvm dependency.

private var timeoutStartNanos: Long = 0

@Volatile
private var state = State.FOREGROUND
Copy link
Contributor

Choose a reason for hiding this comment

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

Since line 69 performs a non atomic operation (check and set), I think @Volatile here is not enough and we should replace it by wrapping the state in an AtomicReference to ensure another thread cannot change the state between the check and the update.

@agrognetti agrognetti added android Pull requests that update android sdk kotlin Pull requests that update kotlin code labels Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android Pull requests that update android sdk kotlin Pull requests that update kotlin code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants