On Mon, 21 Nov 2022 12:03:35 GMT, Per Minborg <pminb...@openjdk.org> wrote:

>> src/java.base/share/classes/java/util/zip/Adler32.java line 102:
>> 
>>> 100:             return;
>>> 101:         if (buffer.isDirect()) {
>>> 102:             try (var sessionAcquisition = 
>>> NIO_ACCESS.acquireSessionAsAutoCloseable(buffer)) {
>> 
>> We need to find something better than "sessionAcquisition", it looks very 
>> messy at all these use sites.
>
> Eventually, I hope most of them will be named `_`.

maybe just `bufferLock` and and just `acquireBuffer` ?

-------------

PR: https://git.openjdk.org/jdk/pull/11260

Reply via email to