Skip to content

Remove UnsafeUtil usage from IterableByteBufferInputStream.#27346

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

Remove UnsafeUtil usage from IterableByteBufferInputStream.#27346
copybara-service[bot] merged 1 commit into
mainfrom
test_914313888

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented May 12, 2026

Remove UnsafeUtil usage from IterableByteBufferInputStream.

This use was somewhat buggy: it would have broken if used on a non-Direct Buffer, or if it was executed in a context where sun.misc.Unsafe was not available.

This path is empirically extremely rarely reached, and so we will just use the 'natural' API as part of getting off of the terminally deprecated sun.misc.Unsafe

@copybara-service copybara-service Bot force-pushed the test_914313888 branch 2 times, most recently from ffdc3e2 to e321a7f Compare May 12, 2026 17:54
This use was somewhat buggy: it would have broken if used on a non-Direct Buffer, or if it was executed in a context where sun.misc.Unsafe was not available.

This path is empirically extremely rarely reached, and so we will just use the 'natural' API as part of getting off of the terminally deprecated sun.misc.Unsafe

PiperOrigin-RevId: 914423267
@copybara-service copybara-service Bot merged commit 1b3e087 into main May 12, 2026
@copybara-service copybara-service Bot deleted the test_914313888 branch May 12, 2026 19:38
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