Files
Fabian Fett bee661186d Mark ByteBuffer._Storage's _capacity and _bytes @exclusivity(unchecked) (#3734)
### Motivation

`ByteBuffer._Storage`'s `_capacity` and `_bytes` are only modified, if
the `ByteBuffer._Storage` is uniquely referenced. This is enforced by
the `isKnownUniquelyReferenced` checks in ByteBuffer itself. For this
reason unexclusive read and write access to these properties can never
happen.

Since the compiler sadly isn't able to spot this. Let's help it, by
marking the properties with `@exclusivity(unchecked)`

### Changes

- Mark ByteBuffer._Storage's _capacity and _bytes
`@exclusivity(unchecked)`

### Result

Significant reduction in instructions, which leads to faster ByteBuffer
code.
2026-09-04 13:19:48 +01:00
..
2024-09-12 13:18:25 +01:00
2026-07-07 15:46:28 +01:00
2026-07-07 15:46:28 +01:00
2025-10-06 10:58:33 +01:00
2025-05-07 12:24:44 +00:00
2025-05-07 12:24:44 +00:00