Skip to content

Conversation

@ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 22, 2025

The modulo operator associated 0 and 100, so the computation here was essentially handle?.numericValue ?? (0 % 100), equivalent to handle?.numericValue ?? 0, which means that we didn’t acutally perform modulo operations on the numeric value, which means that we would exceed the maximum number of os_log_t objects after some time.

rdar://162891887

The modulo operator associated `0` and `100`, so the computation here was essentially `handle?.numericValue ?? (0 % 100)`, equivalent to `handle?.numericValue ?? 0`, which means that we didn’t acutally perform modulo operations on the numeric value, which means that we would exceed the maximum number of `os_log_t` objects after some time.

rdar://162891887
@ahoppen
Copy link
Member Author

ahoppen commented Oct 22, 2025

@swift-ci Please test

@ahoppen ahoppen enabled auto-merge October 22, 2025 21:50
@ahoppen ahoppen merged commit f5209ee into swiftlang:main Oct 23, 2025
3 checks passed
@ahoppen ahoppen deleted the log-scope-wrapping branch October 23, 2025 07:12
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