Skip to content

Remove Unsafe usage from CodedOutputStream.#27347

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_914326306
May 12, 2026
Merged

Remove Unsafe usage from CodedOutputStream.#27347
copybara-service[bot] merged 1 commit into
mainfrom
test_914326306

Conversation

@copybara-service
Copy link
Copy Markdown

Remove Unsafe usage from CodedOutputStream.

This change effectively has the runtime behavior of hardcoding HAS_UNSAFE_ARRAY_OPERATIONS to false, which was measured as a net performance improvement after the recent loop unrolling changes.

This is one of the last steps towards no longer using the terminally deprecated sun.misc.Unsafe from JavaFull.

This change effectively has the runtime behavior of hardcoding HAS_UNSAFE_ARRAY_OPERATIONS to false, which was measured as a net performance improvement after the recent loop unrolling changes.

This is one of the last steps towards no longer using the terminally deprecated sun.misc.Unsafe from JavaFull.

PiperOrigin-RevId: 914398839
@copybara-service copybara-service Bot merged commit fddc1b2 into main May 12, 2026
@copybara-service copybara-service Bot deleted the test_914326306 branch May 12, 2026 18:49
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