RFR: 8296024: Usage of DIrectBuffer::address should be guarded [v4]
ExE Boss
duke at openjdk.org
Mon Nov 21 13:49:09 UTC 2022
On Mon, 21 Nov 2022 13:43:56 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> src/java.base/share/classes/sun/nio/ch/DirectBuffer.java line 41:
>>
>>> 39: // An example of a guarded use of a memory address is shown here:
>>> 40: //
>>> 41: // try (var guard = NIO_ACCESS.acquireSessionAsAutoCloseable(bb)) {
>>
>> Suggestion:
>>
>> // try (var guard = NIO_ACCESS.acquireSession(bb)) {
>
> Are you happy with the proposed renaming now @ExE-Boss ? I think our propositions crossed in time?
This change was missed in commit <https://github.com/openjdk/jdk/pull/11260/commits/c081b4aebb7b52c7161656b4cba9b0a60d36202a>.
-------------
PR: https://git.openjdk.org/jdk/pull/11260
More information about the security-dev
mailing list